PHP Class eZ\Publish\Core\Limitation\Tests\ContentTypeLimitationTypeTest

Inheritance: extends Base
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
providerForTestAcceptValue ( ) : array
providerForTestAcceptValueException ( ) : array
providerForTestEvaluate ( ) : array
providerForTestEvaluateInvalidArgument ( ) : array
providerForTestValidateError ( ) : array
providerForTestValidatePass ( ) : array
setUp ( ) Setup Location Handler mock.
tearDown ( ) Tear down Location Handler mock.
testAcceptValue ( eZ\Publish\API\Repository\Values\User\Limitation\ContentTypeLimitation $limitation, ContentTypeLimitationType $limitationType )
testAcceptValueException ( eZ\Publish\API\Repository\Values\User\Limitation $limitation, ContentTypeLimitationType $limitationType )
testBuildValue ( ContentTypeLimitationType $limitationType )
testConstruct ( ) : ContentTypeLimitationType
testEvaluate ( eZ\Publish\API\Repository\Values\User\Limitation\ContentTypeLimitation $limitation, eZ\Publish\API\Repository\Values\ValueObject $object, array $targets, $expected )
testEvaluateInvalidArgument ( eZ\Publish\API\Repository\Values\User\Limitation $limitation, eZ\Publish\API\Repository\Values\ValueObject $object, array $targets )
testGetCriterionInvalidValue ( ContentTypeLimitationType $limitationType )
testGetCriterionMultipleValues ( ContentTypeLimitationType $limitationType )
testGetCriterionSingleValue ( ContentTypeLimitationType $limitationType )
testValidateError ( eZ\Publish\API\Repository\Values\User\Limitation\ContentTypeLimitation $limitation, integer $errorCount )
testValidatePass ( eZ\Publish\API\Repository\Values\User\Limitation\ContentTypeLimitation $limitation )
testValueSchema ( ContentTypeLimitationType $limitationType )

Method Details

providerForTestAcceptValue() public method

public providerForTestAcceptValue ( ) : array
return array

providerForTestAcceptValueException() public method

providerForTestEvaluate() public method

public providerForTestEvaluate ( ) : array
return array

providerForTestEvaluateInvalidArgument() public method

providerForTestValidateError() public method

providerForTestValidatePass() public method

setUp() public method

Setup Location Handler mock.
public setUp ( )

tearDown() public method

Tear down Location Handler mock.
public tearDown ( )

testAcceptValue() public method

public testAcceptValue ( eZ\Publish\API\Repository\Values\User\Limitation\ContentTypeLimitation $limitation, ContentTypeLimitationType $limitationType )
$limitation eZ\Publish\API\Repository\Values\User\Limitation\ContentTypeLimitation
$limitationType eZ\Publish\Core\Limitation\ContentTypeLimitationType

testAcceptValueException() public method

public testAcceptValueException ( eZ\Publish\API\Repository\Values\User\Limitation $limitation, ContentTypeLimitationType $limitationType )
$limitation eZ\Publish\API\Repository\Values\User\Limitation
$limitationType eZ\Publish\Core\Limitation\ContentTypeLimitationType

testBuildValue() public method

public testBuildValue ( ContentTypeLimitationType $limitationType )
$limitationType eZ\Publish\Core\Limitation\ContentTypeLimitationType

testConstruct() public method

public testConstruct ( ) : ContentTypeLimitationType
return eZ\Publish\Core\Limitation\ContentTypeLimitationType

testEvaluate() public method

public testEvaluate ( eZ\Publish\API\Repository\Values\User\Limitation\ContentTypeLimitation $limitation, eZ\Publish\API\Repository\Values\ValueObject $object, array $targets, $expected )
$limitation eZ\Publish\API\Repository\Values\User\Limitation\ContentTypeLimitation
$object eZ\Publish\API\Repository\Values\ValueObject
$targets array

testEvaluateInvalidArgument() public method

public testEvaluateInvalidArgument ( eZ\Publish\API\Repository\Values\User\Limitation $limitation, eZ\Publish\API\Repository\Values\ValueObject $object, array $targets )
$limitation eZ\Publish\API\Repository\Values\User\Limitation
$object eZ\Publish\API\Repository\Values\ValueObject
$targets array

testGetCriterionInvalidValue() public method

public testGetCriterionInvalidValue ( ContentTypeLimitationType $limitationType )
$limitationType eZ\Publish\Core\Limitation\ContentTypeLimitationType

testGetCriterionMultipleValues() public method

public testGetCriterionMultipleValues ( ContentTypeLimitationType $limitationType )
$limitationType eZ\Publish\Core\Limitation\ContentTypeLimitationType

testGetCriterionSingleValue() public method

public testGetCriterionSingleValue ( ContentTypeLimitationType $limitationType )
$limitationType eZ\Publish\Core\Limitation\ContentTypeLimitationType

testValidateError() public method

public testValidateError ( eZ\Publish\API\Repository\Values\User\Limitation\ContentTypeLimitation $limitation, integer $errorCount )
$limitation eZ\Publish\API\Repository\Values\User\Limitation\ContentTypeLimitation
$errorCount integer

testValidatePass() public method

public testValidatePass ( eZ\Publish\API\Repository\Values\User\Limitation\ContentTypeLimitation $limitation )
$limitation eZ\Publish\API\Repository\Values\User\Limitation\ContentTypeLimitation

testValueSchema() public method

public testValueSchema ( ContentTypeLimitationType $limitationType )
$limitationType eZ\Publish\Core\Limitation\ContentTypeLimitationType