aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php18
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()