]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Changed export test 3047/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 3 May 2017 08:53:10 +0000 (10:53 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 3 May 2017 08:53:10 +0000 (10:53 +0200)
tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php

index 1b8ecc49748e75a780056483d330b983bb5c7f6f..63f2c829a8eef3bae39ca0b9d69fbf3080e289e9 100644 (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()