fix tests implementing AbstractAggregatorTest

This commit is contained in:
2023-09-01 15:07:37 +02:00
parent a197a6b418
commit 37c1dfb0ba
53 changed files with 215 additions and 212 deletions

View File

@@ -52,9 +52,7 @@ final class AgentAggregatorTest extends AbstractAggregatorTest
public function getQueryBuilders(): array
{
if (null === self::$kernel) {
self::bootKernel();
}
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
@@ -62,7 +60,6 @@ final class AgentAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
->join('cal.mainUser', 'caluser'),
];
}
}

View File

@@ -52,9 +52,7 @@ final class CancelReasonAggregatorTest extends AbstractAggregatorTest
public function getQueryBuilders(): array
{
if (null === self::$kernel) {
self::bootKernel();
}
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
@@ -62,7 +60,6 @@ final class CancelReasonAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
->join('cal.cancelReason', 'calcancel'),
];
}
}

View File

@@ -52,9 +52,7 @@ final class JobAggregatorTest extends AbstractAggregatorTest
public function getQueryBuilders(): array
{
if (null === self::$kernel) {
self::bootKernel();
}
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
@@ -62,7 +60,6 @@ final class JobAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
->join('cal.mainUser', 'caluser'),
];
}
}

View File

@@ -52,9 +52,7 @@ final class LocationAggregatorTest extends AbstractAggregatorTest
public function getQueryBuilders(): array
{
if (null === self::$kernel) {
self::bootKernel();
}
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
@@ -62,7 +60,6 @@ final class LocationAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
->join('cal.location', 'calloc'),
];
}
}

View File

@@ -52,9 +52,7 @@ final class LocationTypeAggregatorTest extends AbstractAggregatorTest
public function getQueryBuilders(): array
{
if (null === self::$kernel) {
self::bootKernel();
}
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
@@ -62,7 +60,6 @@ final class LocationTypeAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
->join('cal.location', 'calloc'),
];
}
}

View File

@@ -52,9 +52,7 @@ final class MonthYearAggregatorTest extends AbstractAggregatorTest
public function getQueryBuilders(): array
{
if (null === self::$kernel) {
self::bootKernel();
}
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);

View File

@@ -52,9 +52,7 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest
public function getQueryBuilders(): array
{
if (null === self::$kernel) {
self::bootKernel();
}
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
@@ -62,7 +60,6 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
->join('cal.mainUser', 'caluser'),
];
}
}