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->willImplement(FilterInterface::class);
$filterBar->applyOn()->willReturn('bar'); $filterBar->applyOn()->willReturn('bar');
$filterBar->addRole()->willReturn(null); $filterBar->addRole()->willReturn(null);
$filterBar->describeAction(Argument::cetera())->willReturn('string');
$exportManager->addFilter($filterBar->reveal(), 'bar'); $exportManager->addFilter($filterBar->reveal(), 'bar');
$exportBar = $this->prophet->prophesize(); $exportBar = $this->prophet->prophesize();
@ -499,6 +500,7 @@ class ExportManagerTest extends KernelTestCase
$filterFoo->willImplement(FilterInterface::class); $filterFoo->willImplement(FilterInterface::class);
$filterFoo->applyOn()->willReturn('foo'); $filterFoo->applyOn()->willReturn('foo');
$filterFoo->addRole()->willReturn(null); $filterFoo->addRole()->willReturn(null);
$filterFoo->describeAction(Argument::cetera())->willReturn('string');
$exportManager->addFilter($filterFoo->reveal(), 'foo'); $exportManager->addFilter($filterFoo->reveal(), 'foo');
$exportFoo = $this->prophet->prophesize(); $exportFoo = $this->prophet->prophesize();
@ -585,6 +587,7 @@ class ExportManagerTest extends KernelTestCase
$filter->addRole()->shouldBeCalled(); $filter->addRole()->shouldBeCalled();
//$filter->addRole()->shouldBeCalled(); //$filter->addRole()->shouldBeCalled();
$filter->applyOn()->willReturn('foo'); $filter->applyOn()->willReturn('foo');
$filter->describeAction(Argument::cetera())->willReturn('filtered string');
$exportManager->addFilter($filter->reveal(), 'filter_foo'); $exportManager->addFilter($filter->reveal(), 'filter_foo');
$aggregator = $this->prophet->prophesize(); $aggregator = $this->prophet->prophesize();
@ -645,6 +648,8 @@ class ExportManagerTest extends KernelTestCase
$expected = <<<EOT $expected = <<<EOT
"dummy title" "dummy title"
"filtered string"
, ,
"label cat a",0 "label cat a",0
"label cat b",1 "label cat b",1