Fix tag test

This commit is contained in:
Jeremy Benoist
2016-10-02 16:53:52 +02:00
parent 6c8806cadc
commit 74e1f7433a
3 changed files with 16 additions and 13 deletions

View File

@ -193,7 +193,7 @@ class ExportControllerTest extends WallabagCoreTestCase
$contentInDB = $client->getContainer()
->get('doctrine.orm.entity_manager')
->getRepository('WallabagCoreBundle:Entry')
->findOneByUsernameAndNotArchived('admin');
->findByUrlAndUserId('http://0.0.0.0/entry1', $this->getLoggedInUserId());
ob_start();
$crawler = $client->request('GET', '/export/'.$contentInDB->getId().'.json');