mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 22:30:01 +02:00
Run phpunit code quality rector
This commit is contained in:
parent
f215bd11cd
commit
f3ad3c1ffe
15 changed files with 66 additions and 70 deletions
|
@ -30,7 +30,6 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|||
class UserRepositoryTest extends WebTestCase
|
||||
{
|
||||
|
||||
private $entityManager;
|
||||
/**
|
||||
* @var UserRepository
|
||||
*/
|
||||
|
@ -40,11 +39,11 @@ class UserRepositoryTest extends WebTestCase
|
|||
{
|
||||
$kernel = self::bootKernel();
|
||||
|
||||
$this->entityManager = $kernel->getContainer()
|
||||
$entityManager = $kernel->getContainer()
|
||||
->get('doctrine')
|
||||
->getManager();
|
||||
|
||||
$this->repo = $this->entityManager->getRepository(User::class);
|
||||
$this->repo = $entityManager->getRepository(User::class);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue