X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2FWallabag%2FCoreBundle%2FController%2FExportControllerTest.php;h=47b86117dde2a35c72c6902fecfbf028755f4743;hb=refs%2Fpull%2F2275%2Fhead;hp=b22156c37466c1012d0947dac652de3244c358b7;hpb=6f23289e721bd14710af1acc23466432c1312850;p=github%2Fwallabag%2Fwallabag.git 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); } }