aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ImportBundle
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-09-26 13:40:10 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-09-26 13:40:10 +0200
commitfefef9d41b4d1bd9efbd49011159bae70bf67528 (patch)
tree78baf852244bf15320b45d509ff200f5c344c6f1 /tests/Wallabag/ImportBundle
parent990adfb34c148e7cd28b9cb784cf2b7388caae8f (diff)
downloadwallabag-fefef9d41b4d1bd9efbd49011159bae70bf67528.tar.gz
wallabag-fefef9d41b4d1bd9efbd49011159bae70bf67528.tar.zst
wallabag-fefef9d41b4d1bd9efbd49011159bae70bf67528.zip
Added tags for Firefox import
Diffstat (limited to 'tests/Wallabag/ImportBundle')
-rw-r--r--tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php2
-rw-r--r--tests/Wallabag/ImportBundle/fixtures/firefox-bookmarks.json1
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php b/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php
index dea5b79c..98f13d72 100644
--- a/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php
+++ b/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php
@@ -120,7 +120,7 @@ class FirefoxControllerTest extends WallabagCoreTestCase
120 $this->assertNotEmpty($content->getMimetype()); 120 $this->assertNotEmpty($content->getMimetype());
121 $this->assertNotEmpty($content->getPreviewPicture()); 121 $this->assertNotEmpty($content->getPreviewPicture());
122 $this->assertNotEmpty($content->getLanguage()); 122 $this->assertNotEmpty($content->getLanguage());
123 $this->assertEquals(0, count($content->getTags())); 123 $this->assertEquals(2, count($content->getTags()));
124 124
125 $content = $client->getContainer() 125 $content = $client->getContainer()
126 ->get('doctrine.orm.entity_manager') 126 ->get('doctrine.orm.entity_manager')
diff --git a/tests/Wallabag/ImportBundle/fixtures/firefox-bookmarks.json b/tests/Wallabag/ImportBundle/fixtures/firefox-bookmarks.json
index ee06a16c..406b5697 100644
--- a/tests/Wallabag/ImportBundle/fixtures/firefox-bookmarks.json
+++ b/tests/Wallabag/ImportBundle/fixtures/firefox-bookmarks.json
@@ -32,6 +32,7 @@
32 "index": 1, 32 "index": 1,
33 "dateAdded": 1388166091644000, 33 "dateAdded": 1388166091644000,
34 "lastModified": 1388166091644000, 34 "lastModified": 1388166091644000,
35 "tags":"test,tag",
35 "id": 4, 36 "id": 4,
36 "type": "text/x-moz-place", 37 "type": "text/x-moz-place",
37 "uri": "http://lexpansion.lexpress.fr/high-tech/orange-offre-un-meilleur-reseau-mobile-que-bouygues-et-sfr-free-derriere_1811554.html" 38 "uri": "http://lexpansion.lexpress.fr/high-tech/orange-offre-un-meilleur-reseau-mobile-que-bouygues-et-sfr-free-derriere_1811554.html"