aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-03-28 09:41:49 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-03-28 09:41:49 +0200
commitcc8c2d315f6868201ff32cc4895844c800624a87 (patch)
tree9a59669aba09a08751aecc0dcf8ccd1e20aef6c6 /src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php
parenta2d6f6e9d806c727b20a08f37ef7ede1e0dad3cf (diff)
parent8f336fda649c064cabfa692793334067ece780f9 (diff)
downloadwallabag-cc8c2d315f6868201ff32cc4895844c800624a87.tar.gz
wallabag-cc8c2d315f6868201ff32cc4895844c800624a87.tar.zst
wallabag-cc8c2d315f6868201ff32cc4895844c800624a87.zip
Merge pull request #1819 from wallabag/cleanup
Some cleanup
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php')
-rw-r--r--src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php2
1 files changed, 2 insertions, 0 deletions
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
53 $this->assertEmpty($content->getMimetype()); 53 $this->assertEmpty($content->getMimetype());
54 $this->assertEmpty($content->getPreviewPicture()); 54 $this->assertEmpty($content->getPreviewPicture());
55 $this->assertEmpty($content->getLanguage()); 55 $this->assertEmpty($content->getLanguage());
56 $this->assertEquals(0, count($content->getTags()));
56 57
57 $content = $client->getContainer() 58 $content = $client->getContainer()
58 ->get('doctrine.orm.entity_manager') 59 ->get('doctrine.orm.entity_manager')
@@ -65,6 +66,7 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase
65 $this->assertNotEmpty($content->getMimetype()); 66 $this->assertNotEmpty($content->getMimetype());
66 $this->assertNotEmpty($content->getPreviewPicture()); 67 $this->assertNotEmpty($content->getPreviewPicture());
67 $this->assertNotEmpty($content->getLanguage()); 68 $this->assertNotEmpty($content->getLanguage());
69 $this->assertEquals(2, count($content->getTags()));
68 } 70 }
69 71
70 public function testImportWallabagWithEmptyFile() 72 public function testImportWallabagWithEmptyFile()