Changed export test

This commit is contained in:
Nicolas Lœuillet 2017-05-03 10:53:10 +02:00
parent a375fed7bf
commit a162b1a99b
No known key found for this signature in database
GPG Key ID: BDC1EFB5CA0145F2

View File

@ -189,11 +189,9 @@ class ExportControllerTest extends WallabagCoreTestCase
$this->assertContains($contentInDB[0]['language'], $csv[1]);
$this->assertContains($contentInDB[0]['createdAt']->format('d/m/Y h:i:s'), $csv[1]);
$expectedTag = [];
foreach ($contentInDB[0]['tags'] as $tag) {
$expectedTag[] = $tag['label'];
$this->assertContains($tag['label'], $csv[1]);
}
$this->assertContains(implode(', ', $expectedTag), $csv[1]);
}
public function testJsonExport()