This commit is contained in:
2022-10-05 15:30:55 +02:00
parent d95472ca9d
commit 642b1e43c8
22 changed files with 79 additions and 59 deletions

View File

@@ -16,6 +16,10 @@ use Chill\CalendarBundle\Export\Aggregator\AgentAggregator;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
* @coversNothing
*/
final class AgentAggregatorTest extends AbstractAggregatorTest
{
private AgentAggregator $aggregator;
@@ -51,8 +55,7 @@ final class AgentAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
->join('cal.mainUser', 'caluser')
,
->join('cal.mainUser', 'caluser'),
];
}
}

View File

@@ -16,6 +16,10 @@ use Chill\CalendarBundle\Export\Aggregator\CancelReasonAggregator;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
* @coversNothing
*/
final class CancelReasonAggregatorTest extends AbstractAggregatorTest
{
private CancelReasonAggregator $aggregator;
@@ -51,8 +55,7 @@ final class CancelReasonAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
->join('cal.cancelReason', 'calcancel')
,
->join('cal.cancelReason', 'calcancel'),
];
}
}

View File

@@ -16,6 +16,10 @@ use Chill\CalendarBundle\Export\Aggregator\JobAggregator;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
* @coversNothing
*/
final class JobAggregatorTest extends AbstractAggregatorTest
{
private JobAggregator $aggregator;
@@ -51,8 +55,7 @@ final class JobAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
->join('cal.user', 'caluser')
,
->join('cal.user', 'caluser'),
];
}
}

View File

@@ -16,6 +16,10 @@ use Chill\CalendarBundle\Export\Aggregator\LocationAggregator;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
* @coversNothing
*/
final class LocationAggregatorTest extends AbstractAggregatorTest
{
private LocationAggregator $aggregator;
@@ -51,8 +55,7 @@ final class LocationAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
->join('cal.location', 'calloc')
,
->join('cal.location', 'calloc'),
];
}
}

View File

@@ -16,6 +16,10 @@ use Chill\CalendarBundle\Export\Aggregator\LocationTypeAggregator;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
* @coversNothing
*/
final class LocationTypeAggregatorTest extends AbstractAggregatorTest
{
private LocationTypeAggregator $aggregator;
@@ -51,8 +55,7 @@ final class LocationTypeAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
->join('cal.location', 'calloc')
,
->join('cal.location', 'calloc'),
];
}
}

View File

@@ -16,6 +16,10 @@ use Chill\CalendarBundle\Export\Aggregator\MonthYearAggregator;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
* @coversNothing
*/
final class MonthYearAggregatorTest extends AbstractAggregatorTest
{
private MonthYearAggregator $aggregator;
@@ -50,8 +54,7 @@ final class MonthYearAggregatorTest extends AbstractAggregatorTest
return [
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
,
->from(Calendar::class, 'cal'),
];
}
}

View File

@@ -16,6 +16,10 @@ use Chill\CalendarBundle\Export\Aggregator\ScopeAggregator;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
use Doctrine\ORM\EntityManagerInterface;
/**
* @internal
* @coversNothing
*/
final class ScopeAggregatorTest extends AbstractAggregatorTest
{
private ScopeAggregator $aggregator;
@@ -51,8 +55,7 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest
$em->createQueryBuilder()
->select('count(cal.id)')
->from(Calendar::class, 'cal')
->join('cal.user', 'caluser')
,
->join('cal.user', 'caluser'),
];
}
}

View File

@@ -57,7 +57,7 @@ final class AgentFilterTest extends AbstractFilterTest
foreach ($array as $a) {
$data[] = [
'accepted_agents' => $a
'accepted_agents' => $a,
];
}

View File

@@ -14,6 +14,7 @@ namespace Chill\CalendarBundle\Tests\Export\Filter;
use Chill\CalendarBundle\Entity\Calendar;
use Chill\CalendarBundle\Export\Filter\BetweenDatesFilter;
use Chill\MainBundle\Test\Export\AbstractFilterTest;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
/**
@@ -46,9 +47,9 @@ final class BetweenDatesFilterTest extends AbstractFilterTest
{
return [
[
'date_from' => \DateTime::createFromFormat('Y-m-d', '2022-05-01'),
'date_to' => \DateTime::createFromFormat('Y-m-d', '2022-06-01'),
]
'date_from' => DateTime::createFromFormat('Y-m-d', '2022-05-01'),
'date_to' => DateTime::createFromFormat('Y-m-d', '2022-06-01'),
],
];
}

View File

@@ -57,7 +57,7 @@ final class JobFilterTest extends AbstractFilterTest
foreach ($array as $a) {
$data[] = [
'job' => $a
'job' => $a,
];
}

View File

@@ -57,7 +57,7 @@ final class ScopeFilterTest extends AbstractFilterTest
foreach ($array as $a) {
$data[] = [
'scope' => $a
'scope' => $a,
];
}