mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Migrate getRepository with entities
This commit is contained in:
parent
50a941d8b4
commit
8b7b4975d6
38 changed files with 226 additions and 202 deletions
|
@ -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 FirefoxControllerTest extends WallabagCoreTestCase
|
||||
{
|
||||
|
@ -113,7 +114,7 @@ class FirefoxControllerTest extends WallabagCoreTestCase
|
|||
|
||||
$content = $client->getContainer()
|
||||
->get('doctrine.orm.entity_manager')
|
||||
->getRepository('WallabagCoreBundle:Entry')
|
||||
->getRepository(Entry::class)
|
||||
->findByUrlAndUserId(
|
||||
'https://lexpansion.lexpress.fr/high-tech/orange-offre-un-meilleur-reseau-mobile-que-bouygues-et-sfr-free-derriere_1811554.html',
|
||||
$this->getLoggedInUserId()
|
||||
|
@ -127,7 +128,7 @@ class FirefoxControllerTest extends WallabagCoreTestCase
|
|||
|
||||
$content = $client->getContainer()
|
||||
->get('doctrine.orm.entity_manager')
|
||||
->getRepository('WallabagCoreBundle:Entry')
|
||||
->getRepository(Entry::class)
|
||||
->findByUrlAndUserId(
|
||||
'https://www.lemonde.fr/disparitions/article/2018/07/05/le-journaliste-et-cineaste-claude-lanzmann-est-mort_5326313_3382.html',
|
||||
$this->getLoggedInUserId()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue