cs: Second part - ignore test/app subdirectory.

This commit is contained in:
Pol Dellaiera
2021-11-23 14:34:34 +01:00
parent 5f37304796
commit 3ea35682eb
72 changed files with 326 additions and 365 deletions

View File

@@ -230,11 +230,11 @@ class ExportManagerTest extends KernelTestCase
Argument::is(['a' => 'b'])
)
->will(function () use ($em) {
$qb = $em->createQueryBuilder();
$qb = $em->createQueryBuilder();
return $qb->addSelect('COUNT(user.id) as export')
->from('ChillMainBundle:User', 'user');
});
return $qb->addSelect('COUNT(user.id) as export')
->from('ChillMainBundle:User', 'user');
});
//$export->initiateQuery()->shouldBeCalled();
$export->supportsModifiers()->willReturn(['foo']);
$export->requiredRole()->willReturn(new Role('CHILL_STAT_DUMMY'));
@@ -254,7 +254,7 @@ class ExportManagerTest extends KernelTestCase
Argument::Type('array')
)
->willReturn(function ($value) {
switch ($value) {
switch ($value) {
case 0:
case 1:
return $value;
@@ -264,7 +264,7 @@ class ExportManagerTest extends KernelTestCase
default: throw new RuntimeException(sprintf('The value %s is not valid', $value));
}
});
});
$export->getQueryKeys(Argument::Type('array'))->willReturn(['export']);
$export->getTitle()->willReturn('dummy title');
@@ -294,7 +294,7 @@ class ExportManagerTest extends KernelTestCase
Argument::is([])
)
->willReturn(function ($value) {
switch ($value) {
switch ($value) {
case '_header': return 'foo_header';
case 'cat a': return 'label cat a';
@@ -304,7 +304,7 @@ class ExportManagerTest extends KernelTestCase
default:
throw new RuntimeException(sprintf('This value (%s) is not valid', $value));
}
});
});
$aggregator->addRole()->willReturn(null);
//$aggregator->addRole()->shouldBeCalled();
$exportManager->addAggregator($aggregator->reveal(), 'aggregator_foo');