diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-05-03 10:53:10 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-05-03 10:53:10 +0200 |
commit | a162b1a99b0bd4ccebbd129170d043a621bed710 (patch) | |
tree | 871ac07799eb07ed25726800ffa84482af29358f /tests | |
parent | a375fed7bf34c07f760e4f0cda11b2af30dcbcdc (diff) | |
download | wallabag-a162b1a99b0bd4ccebbd129170d043a621bed710.tar.gz wallabag-a162b1a99b0bd4ccebbd129170d043a621bed710.tar.zst wallabag-a162b1a99b0bd4ccebbd129170d043a621bed710.zip |
Changed export test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php b/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php index 1b8ecc49..63f2c829 100644 --- a/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php | |||
@@ -189,11 +189,9 @@ class ExportControllerTest extends WallabagCoreTestCase | |||
189 | $this->assertContains($contentInDB[0]['language'], $csv[1]); | 189 | $this->assertContains($contentInDB[0]['language'], $csv[1]); |
190 | $this->assertContains($contentInDB[0]['createdAt']->format('d/m/Y h:i:s'), $csv[1]); | 190 | $this->assertContains($contentInDB[0]['createdAt']->format('d/m/Y h:i:s'), $csv[1]); |
191 | 191 | ||
192 | $expectedTag = []; | ||
193 | foreach ($contentInDB[0]['tags'] as $tag) { | 192 | foreach ($contentInDB[0]['tags'] as $tag) { |
194 | $expectedTag[] = $tag['label']; | 193 | $this->assertContains($tag['label'], $csv[1]); |
195 | } | 194 | } |
196 | $this->assertContains(implode(', ', $expectedTag), $csv[1]); | ||
197 | } | 195 | } |
198 | 196 | ||
199 | public function testJsonExport() | 197 | public function testJsonExport() |