From 8f336fda649c064cabfa692793334067ece780f9 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sun, 27 Mar 2016 23:32:55 +0200 Subject: Tags were not imported in wallabag v2 import Also, simplify exportAs matching format --- src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Wallabag/ImportBundle/Tests/Controller') diff --git a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php index bcbd6305..490f9ede 100644 --- a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php +++ b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php @@ -53,6 +53,7 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase $this->assertEmpty($content->getMimetype()); $this->assertEmpty($content->getPreviewPicture()); $this->assertEmpty($content->getLanguage()); + $this->assertEquals(0, count($content->getTags())); $content = $client->getContainer() ->get('doctrine.orm.entity_manager') @@ -65,6 +66,7 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase $this->assertNotEmpty($content->getMimetype()); $this->assertNotEmpty($content->getPreviewPicture()); $this->assertNotEmpty($content->getLanguage()); + $this->assertEquals(2, count($content->getTags())); } public function testImportWallabagWithEmptyFile() -- cgit v1.2.3