]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Added tags for Firefox import 2192/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 26 Sep 2016 11:40:10 +0000 (13:40 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 26 Sep 2016 11:40:10 +0000 (13:40 +0200)
tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php
tests/Wallabag/ImportBundle/fixtures/firefox-bookmarks.json

index dea5b79c7a29b77a8aba8be5c40b7da407327d36..98f13d728786a0aa83e325d219fe841f29e8931a 100644 (file)
@@ -120,7 +120,7 @@ class FirefoxControllerTest extends WallabagCoreTestCase
         $this->assertNotEmpty($content->getMimetype());
         $this->assertNotEmpty($content->getPreviewPicture());
         $this->assertNotEmpty($content->getLanguage());
-        $this->assertEquals(0, count($content->getTags()));
+        $this->assertEquals(2, count($content->getTags()));
 
         $content = $client->getContainer()
             ->get('doctrine.orm.entity_manager')
index ee06a16cd0db252b1e65fac01e94c84d26f381d1..406b5697612d1995117236ded9eddcfe01e075b7 100644 (file)
@@ -32,6 +32,7 @@
                     "index": 1,
                     "dateAdded": 1388166091644000,
                     "lastModified": 1388166091644000,
+                    "tags":"test,tag",
                     "id": 4,
                     "type": "text/x-moz-place",
                     "uri": "http://lexpansion.lexpress.fr/high-tech/orange-offre-un-meilleur-reseau-mobile-que-bouygues-et-sfr-free-derriere_1811554.html"