diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-09-08 18:33:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-08 18:33:09 +0200 |
commit | c078d18372e05b09b40c34f67b7cb81446f30c4f (patch) | |
tree | 947d7b707f9eb07b013b7bda80930e9e977d155e /tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php | |
parent | 5fc79381bb51220836d1c1db4cb5e9c7dec076b9 (diff) | |
parent | 9401696fe4ac78863fa5318de9cd9765c3a139bf (diff) | |
download | wallabag-c078d18372e05b09b40c34f67b7cb81446f30c4f.tar.gz wallabag-c078d18372e05b09b40c34f67b7cb81446f30c4f.tar.zst wallabag-c078d18372e05b09b40c34f67b7cb81446f30c4f.zip |
Merge pull request #2275 from wallabag/export-dates
Export dates from entries
Diffstat (limited to 'tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php')
-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 | } |