Migrate getRepository with entities

This commit is contained in:
Yassine Guedidi
2022-08-25 21:37:10 +02:00
parent 50a941d8b4
commit 8b7b4975d6
38 changed files with 226 additions and 202 deletions

View File

@ -4,6 +4,7 @@ namespace Tests\Wallabag\ApiBundle;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\BrowserKit\Cookie;
use Wallabag\UserBundle\Entity\User;
abstract class WallabagApiTestCase extends WebTestCase
{
@ -63,7 +64,7 @@ abstract class WallabagApiTestCase extends WebTestCase
return $this->client
->getContainer()
->get('doctrine.orm.entity_manager')
->getRepository('WallabagUserBundle:User')
->getRepository(User::class)
->findOneByUserName($username)
->getId();
}