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

@ -70,7 +70,7 @@ class ShowUserCommandTest extends WallabagCoreTestCase
$this->logInAs('admin');
/** @var User $user */
$user = $em->getRepository('WallabagUserBundle:User')->findOneById($this->getLoggedInUserId());
$user = $em->getRepository(User::class)->findOneById($this->getLoggedInUserId());
$user->setName('Bug boss');
$em->persist($user);