mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 18:43:49 +00:00
fix tests implementing AbstractAggregatorTest
This commit is contained in:
@@ -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'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@@ -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'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@@ -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'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@@ -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'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@@ -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'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@@ -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);
|
||||
|
||||
|
@@ -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'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user