mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 14:28:42 +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
|
@ -32,7 +32,6 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|||
*/
|
||||
class StructuralDBElementRepositoryTest extends WebTestCase
|
||||
{
|
||||
private $entityManager;
|
||||
/**
|
||||
* @var StructuralDBElementRepository
|
||||
*/
|
||||
|
@ -42,11 +41,11 @@ class StructuralDBElementRepositoryTest extends WebTestCase
|
|||
{
|
||||
$kernel = self::bootKernel();
|
||||
|
||||
$this->entityManager = $kernel->getContainer()
|
||||
$entityManager = $kernel->getContainer()
|
||||
->get('doctrine')
|
||||
->getManager();
|
||||
|
||||
$this->repo = $this->entityManager->getRepository(AttachmentType::class);
|
||||
$this->repo = $entityManager->getRepository(AttachmentType::class);
|
||||
}
|
||||
|
||||
public function testFindRootNodes(): void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue