diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2016-02-05 14:52:35 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2016-02-05 14:52:35 +0100 |
commit | 4c46e2609fe0ebb1f6a4b4b23a3d8647a1d9d9cd (patch) | |
tree | 9cfd4d276fee0859a3aca50919e4cd344501fffa /src | |
parent | f21a5388f925a7b8ec17f5d0229613b0cebff4d9 (diff) | |
download | wallabag-4c46e2609fe0ebb1f6a4b4b23a3d8647a1d9d9cd.tar.gz wallabag-4c46e2609fe0ebb1f6a4b4b23a3d8647a1d9d9cd.tar.zst wallabag-4c46e2609fe0ebb1f6a4b4b23a3d8647a1d9d9cd.zip |
an other test for non empty fields
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php index 49b4703e..617c0517 100644 --- a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php +++ b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php | |||
@@ -50,9 +50,21 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase | |||
50 | $this->getLoggedInUserId() | 50 | $this->getLoggedInUserId() |
51 | ); | 51 | ); |
52 | 52 | ||
53 | $this->assertEquals('', $content->getMimetype()); | 53 | $this->assertEmpty($content->getMimetype()); |
54 | $this->assertEquals('', $content->getPreviewPicture()); | 54 | $this->assertEmpty($content->getPreviewPicture()); |
55 | $this->assertEquals('', $content->getLanguage()); | 55 | $this->assertEmpty($content->getLanguage()); |
56 | |||
57 | $content = $client->getContainer() | ||
58 | ->get('doctrine.orm.entity_manager') | ||
59 | ->getRepository('WallabagCoreBundle:Entry') | ||
60 | ->findByUrlAndUserId( | ||
61 | 'https://www.mediapart.fr/', | ||
62 | $this->getLoggedInUserId() | ||
63 | ); | ||
64 | |||
65 | $this->assertNotEmpty($content->getMimetype()); | ||
66 | $this->assertNotEmpty($content->getPreviewPicture()); | ||
67 | $this->assertNotEmpty($content->getLanguage()); | ||
56 | } | 68 | } |
57 | 69 | ||
58 | public function testImportWallabagWithEmptyFile() | 70 | public function testImportWallabagWithEmptyFile() |