fix test with new filerinterface

This commit is contained in:
Julien Fastré 2016-12-01 22:46:25 +01:00
parent 12dbb587df
commit dc59c99f70

View File

@ -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