eZ\Bundle\EzPublishCoreBundle\Tests\Matcher\BaseMatcherFactoryTest::getResolverMock PHP Method

getResolverMock() protected method

protected getResolverMock ( string $matcherServiceIdentifier ) : PHPUnit_Framework_MockObject_MockObject
$matcherServiceIdentifier string
return PHPUnit_Framework_MockObject_MockObject
    protected function getResolverMock($matcherServiceIdentifier)
    {
        $resolverMock = $this->getMock('eZ\\Publish\\Core\\MVC\\ConfigResolverInterface');
        $resolverMock->expects($this->atLeastOnce())->method('getParameter')->with($this->logicalOr('location_view', 'content_view', 'block_view'))->will($this->returnValue(array('full' => array('matchRule' => array('template' => 'my_template.html.twig', 'match' => array($matcherServiceIdentifier => 'someValue'))), 'block' => array('matchRule' => array('template' => 'my_template.html.twig', 'match' => array($matcherServiceIdentifier => 'someValue'))))));
        return $resolverMock;
    }