diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2016-02-05 14:39:52 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2016-02-05 14:39:52 +0100 |
commit | f21a5388f925a7b8ec17f5d0229613b0cebff4d9 (patch) | |
tree | ee35e1056c8d1728030731a431b73dc29be348fa /src/Wallabag | |
parent | a0e6a6eb67deacb5d03451b1038b5a5e86a0a939 (diff) | |
download | wallabag-f21a5388f925a7b8ec17f5d0229613b0cebff4d9.tar.gz wallabag-f21a5388f925a7b8ec17f5d0229613b0cebff4d9.tar.zst wallabag-f21a5388f925a7b8ec17f5d0229613b0cebff4d9.zip |
add test to check empty fields
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php index a77c0f6b..49b4703e 100644 --- a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php +++ b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php | |||
@@ -41,6 +41,18 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase | |||
41 | 41 | ||
42 | $this->assertGreaterThan(1, $alert = $crawler->filter('div.messages.success')->extract(array('_text'))); | 42 | $this->assertGreaterThan(1, $alert = $crawler->filter('div.messages.success')->extract(array('_text'))); |
43 | $this->assertContains('Import summary', $alert[0]); | 43 | $this->assertContains('Import summary', $alert[0]); |
44 | |||
45 | $content = $client->getContainer() | ||
46 | ->get('doctrine.orm.entity_manager') | ||
47 | ->getRepository('WallabagCoreBundle:Entry') | ||
48 | ->findByUrlAndUserId( | ||
49 | 'http://www.liberation.fr/planete/2015/10/26/refugies-l-ue-va-creer-100-000-places-d-accueil-dans-les-balkans_1408867', | ||
50 | $this->getLoggedInUserId() | ||
51 | ); | ||
52 | |||
53 | $this->assertEquals('', $content->getMimetype()); | ||
54 | $this->assertEquals('', $content->getPreviewPicture()); | ||
55 | $this->assertEquals('', $content->getLanguage()); | ||
44 | } | 56 | } |
45 | 57 | ||
46 | public function testImportWallabagWithEmptyFile() | 58 | public function testImportWallabagWithEmptyFile() |