mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
cs: Second part - ignore test/app
subdirectory.
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user