mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 12:46:27 +00:00
add test to check empty fields
This commit is contained in:
parent
a0e6a6eb67
commit
f21a5388f9
1 changed files with 12 additions and 0 deletions
|
@ -41,6 +41,18 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase
|
|||
|
||||
$this->assertGreaterThan(1, $alert = $crawler->filter('div.messages.success')->extract(array('_text')));
|
||||
$this->assertContains('Import summary', $alert[0]);
|
||||
|
||||
$content = $client->getContainer()
|
||||
->get('doctrine.orm.entity_manager')
|
||||
->getRepository('WallabagCoreBundle:Entry')
|
||||
->findByUrlAndUserId(
|
||||
'http://www.liberation.fr/planete/2015/10/26/refugies-l-ue-va-creer-100-000-places-d-accueil-dans-les-balkans_1408867',
|
||||
$this->getLoggedInUserId()
|
||||
);
|
||||
|
||||
$this->assertEquals('', $content->getMimetype());
|
||||
$this->assertEquals('', $content->getPreviewPicture());
|
||||
$this->assertEquals('', $content->getLanguage());
|
||||
}
|
||||
|
||||
public function testImportWallabagWithEmptyFile()
|
||||
|
|
Loading…
Reference in a new issue