public function matchContentInfo(ContentInfo $contentInfo) { return $this->matchContentTypeId($contentInfo->contentTypeId); }
/** * @dataProvider matchContentInfoProvider * @covers eZ\Publish\Core\MVC\Symfony\Matcher\ContentBased\Id\ContentTypeGroup::matchContentInfo * @covers eZ\Publish\Core\MVC\Symfony\Matcher\ContentBased\MultipleValued::setMatchingConfig * * @param int|int[] $matchingConfig * @param \eZ\Publish\API\Repository\Repository $repository * @param bool $expectedResult */ public function testMatchContentInfo($matchingConfig, Repository $repository, $expectedResult) { $this->matcher->setRepository($repository); $this->matcher->setMatchingConfig($matchingConfig); $this->assertSame($expectedResult, $this->matcher->matchContentInfo($this->getContentInfoMock(array('contentTypeId' => 42)))); }