eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Identifier\SectionTest::testMatchLocation PHP Method

testMatchLocation() public method

public testMatchLocation ( string | string[] $matchingConfig, eZ\Publish\API\Repository\Repository $repository, boolean $expectedResult )
$matchingConfig string | string[]
$repository eZ\Publish\API\Repository\Repository
$expectedResult boolean
    public function testMatchLocation($matchingConfig, Repository $repository, $expectedResult)
    {
        $this->matcher->setRepository($repository);
        $this->matcher->setMatchingConfig($matchingConfig);
        $location = $this->getLocationMock();
        $location->expects($this->once())->method('getContentInfo')->will($this->returnValue($this->getContentInfoMock()));
        $this->assertSame($expectedResult, $this->matcher->matchLocation($location));
    }