PHP Class eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Id\ContentTypeTest

Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
matchContentInfoProvider ( )
matchLocationProvider ( )
testMatchContentInfo ( integer | int[] $matchingConfig, eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, boolean $expectedResult )
testMatchLocation ( integer | int[] $matchingConfig, eZ\Publish\API\Repository\Values\Content\Location $location, boolean $expectedResult )

Protected Methods

Method Description
setUp ( )

Private Methods

Method Description
generateContentInfoForContentType ( integer $contentTypeId ) : PHPUnit_Framework_MockObject_MockObject Generates a ContentInfo object in respect of a given content type identifier.
generateLocationForContentType ( integer $contentTypeId ) : PHPUnit_Framework_MockObject_MockObject Generates a Location object in respect of a given content type identifier.

Method Details

matchContentInfoProvider() public method

matchLocationProvider() public method

setUp() protected method

protected setUp ( )

testMatchContentInfo() public method

public testMatchContentInfo ( integer | int[] $matchingConfig, eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, boolean $expectedResult )
$matchingConfig integer | int[]
$contentInfo eZ\Publish\API\Repository\Values\Content\ContentInfo
$expectedResult boolean

testMatchLocation() public method

public testMatchLocation ( integer | int[] $matchingConfig, eZ\Publish\API\Repository\Values\Content\Location $location, boolean $expectedResult )
$matchingConfig integer | int[]
$location eZ\Publish\API\Repository\Values\Content\Location
$expectedResult boolean