eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\DepthTest::testMatchContentInfo PHP Method

testMatchContentInfo() public method

public testMatchContentInfo ( integer | int[] $matchingConfig, eZ\Publish\API\Repository\Repository $repository, boolean $expectedResult )
$matchingConfig integer | int[]
$repository eZ\Publish\API\Repository\Repository
$expectedResult boolean
    public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult)
    {
        $this->matcher->setRepository($repository);
        $this->matcher->setMatchingConfig($matchingConfig);
        $this->assertSame($expectedResult, $this->matcher->matchContentInfo($this->getContentInfoMock(array('mainLocationId' => 42))));
    }