diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-08 16:38:08 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-08 16:49:21 +0200 |
commit | 9401696fe4ac78863fa5318de9cd9765c3a139bf (patch) | |
tree | 84fae8a20d5203e6c58fdc7e67f56404e1eacfe2 /tests/Wallabag/CoreBundle | |
parent | 6f23289e721bd14710af1acc23466432c1312850 (diff) | |
download | wallabag-9401696fe4ac78863fa5318de9cd9765c3a139bf.tar.gz wallabag-9401696fe4ac78863fa5318de9cd9765c3a139bf.tar.zst wallabag-9401696fe4ac78863fa5318de9cd9765c3a139bf.zip |
Export dates from entries
Diffstat (limited to 'tests/Wallabag/CoreBundle')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php b/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php index b22156c3..47b86117 100644 --- a/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php | |||
@@ -168,7 +168,7 @@ class ExportControllerTest extends WallabagCoreTestCase | |||
168 | $this->assertGreaterThan(1, $csv); | 168 | $this->assertGreaterThan(1, $csv); |
169 | // +1 for title line | 169 | // +1 for title line |
170 | $this->assertEquals(count($contentInDB) + 1, count($csv)); | 170 | $this->assertEquals(count($contentInDB) + 1, count($csv)); |
171 | $this->assertEquals('Title;URL;Content;Tags;"MIME Type";Language', $csv[0]); | 171 | $this->assertEquals('Title;URL;Content;Tags;"MIME Type";Language;"Creation date"', $csv[0]); |
172 | } | 172 | } |
173 | 173 | ||
174 | public function testJsonExport() | 174 | public function testJsonExport() |
@@ -210,6 +210,8 @@ class ExportControllerTest extends WallabagCoreTestCase | |||
210 | $this->assertArrayHasKey('reading_time', $content[0]); | 210 | $this->assertArrayHasKey('reading_time', $content[0]); |
211 | $this->assertArrayHasKey('domain_name', $content[0]); | 211 | $this->assertArrayHasKey('domain_name', $content[0]); |
212 | $this->assertArrayHasKey('tags', $content[0]); | 212 | $this->assertArrayHasKey('tags', $content[0]); |
213 | $this->assertArrayHasKey('created_at', $content[0]); | ||
214 | $this->assertArrayHasKey('updated_at', $content[0]); | ||
213 | } | 215 | } |
214 | 216 | ||
215 | public function testXmlExport() | 217 | public function testXmlExport() |
@@ -247,5 +249,7 @@ class ExportControllerTest extends WallabagCoreTestCase | |||
247 | $this->assertNotEmpty('url', (string) $content->entry[0]->url); | 249 | $this->assertNotEmpty('url', (string) $content->entry[0]->url); |
248 | $this->assertNotEmpty('content', (string) $content->entry[0]->content); | 250 | $this->assertNotEmpty('content', (string) $content->entry[0]->content); |
249 | $this->assertNotEmpty('domain_name', (string) $content->entry[0]->domain_name); | 251 | $this->assertNotEmpty('domain_name', (string) $content->entry[0]->domain_name); |
252 | $this->assertNotEmpty('created_at', (string) $content->entry[0]->created_at); | ||
253 | $this->assertNotEmpty('updated_at', (string) $content->entry[0]->updated_at); | ||
250 | } | 254 | } |
251 | } | 255 | } |