forked from wallabag/wallabag
Migrate getRepository with entities
This commit is contained in:
@ -5,6 +5,7 @@ namespace Tests\Wallabag\ImportBundle\Controller;
|
||||
use Predis\Client;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
|
||||
use Wallabag\CoreBundle\Entity\Entry;
|
||||
|
||||
class ChromeControllerTest extends WallabagCoreTestCase
|
||||
{
|
||||
@ -113,7 +114,7 @@ class ChromeControllerTest extends WallabagCoreTestCase
|
||||
|
||||
$content = $client->getContainer()
|
||||
->get('doctrine.orm.entity_manager')
|
||||
->getRepository('WallabagCoreBundle:Entry')
|
||||
->getRepository(Entry::class)
|
||||
->findByUrlAndUserId(
|
||||
'https://www.20minutes.fr/sport/3256363-20220321-tournoi-vi-nations-trophee-gagne-xv-france-fini-fond-seine',
|
||||
$this->getLoggedInUserId()
|
||||
|
||||
Reference in New Issue
Block a user