From 9401696fe4ac78863fa5318de9cd9765c3a139bf Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Thu, 8 Sep 2016 16:38:08 +0200 Subject: Export dates from entries --- tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php') 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 $this->assertGreaterThan(1, $csv); // +1 for title line $this->assertEquals(count($contentInDB) + 1, count($csv)); - $this->assertEquals('Title;URL;Content;Tags;"MIME Type";Language', $csv[0]); + $this->assertEquals('Title;URL;Content;Tags;"MIME Type";Language;"Creation date"', $csv[0]); } public function testJsonExport() @@ -210,6 +210,8 @@ class ExportControllerTest extends WallabagCoreTestCase $this->assertArrayHasKey('reading_time', $content[0]); $this->assertArrayHasKey('domain_name', $content[0]); $this->assertArrayHasKey('tags', $content[0]); + $this->assertArrayHasKey('created_at', $content[0]); + $this->assertArrayHasKey('updated_at', $content[0]); } public function testXmlExport() @@ -247,5 +249,7 @@ class ExportControllerTest extends WallabagCoreTestCase $this->assertNotEmpty('url', (string) $content->entry[0]->url); $this->assertNotEmpty('content', (string) $content->entry[0]->content); $this->assertNotEmpty('domain_name', (string) $content->entry[0]->domain_name); + $this->assertNotEmpty('created_at', (string) $content->entry[0]->created_at); + $this->assertNotEmpty('updated_at', (string) $content->entry[0]->updated_at); } } -- cgit v1.2.3