mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix test with new filerinterface
This commit is contained in:
parent
12dbb587df
commit
dc59c99f70
@ -488,6 +488,7 @@ class ExportManagerTest extends KernelTestCase
|
||||
$filterBar->willImplement(FilterInterface::class);
|
||||
$filterBar->applyOn()->willReturn('bar');
|
||||
$filterBar->addRole()->willReturn(null);
|
||||
$filterBar->describeAction(Argument::cetera())->willReturn('string');
|
||||
$exportManager->addFilter($filterBar->reveal(), 'bar');
|
||||
|
||||
$exportBar = $this->prophet->prophesize();
|
||||
@ -499,6 +500,7 @@ class ExportManagerTest extends KernelTestCase
|
||||
$filterFoo->willImplement(FilterInterface::class);
|
||||
$filterFoo->applyOn()->willReturn('foo');
|
||||
$filterFoo->addRole()->willReturn(null);
|
||||
$filterFoo->describeAction(Argument::cetera())->willReturn('string');
|
||||
$exportManager->addFilter($filterFoo->reveal(), 'foo');
|
||||
|
||||
$exportFoo = $this->prophet->prophesize();
|
||||
@ -585,6 +587,7 @@ class ExportManagerTest extends KernelTestCase
|
||||
$filter->addRole()->shouldBeCalled();
|
||||
//$filter->addRole()->shouldBeCalled();
|
||||
$filter->applyOn()->willReturn('foo');
|
||||
$filter->describeAction(Argument::cetera())->willReturn('filtered string');
|
||||
$exportManager->addFilter($filter->reveal(), 'filter_foo');
|
||||
|
||||
$aggregator = $this->prophet->prophesize();
|
||||
@ -645,6 +648,8 @@ class ExportManagerTest extends KernelTestCase
|
||||
$expected = <<<EOT
|
||||
"dummy title"
|
||||
|
||||
"filtered string"
|
||||
|
||||
,
|
||||
"label cat a",0
|
||||
"label cat b",1
|
||||
|
Loading…
x
Reference in New Issue
Block a user