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

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 Handler mock.
tearDown ( ) Tear down Handler mock.
testAcceptValue ( eZ\Publish\API\Repository\Values\User\Limitation\NewObjectStateLimitation $limitation, NewObjectStateLimitationType $limitationType )
testAcceptValueException ( eZ\Publish\API\Repository\Values\User\Limitation $limitation, NewObjectStateLimitationType $limitationType )
testBuildValue ( NewObjectStateLimitationType $limitationType )
testConstruct ( ) : NewObjectStateLimitationType
testEvaluate ( eZ\Publish\API\Repository\Values\User\Limitation\NewObjectStateLimitation $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 )
testGetCriterion ( NewObjectStateLimitationType $limitationType )
testValidateError ( eZ\Publish\API\Repository\Values\User\Limitation\NewObjectStateLimitation $limitation, integer $errorCount )
testValidatePass ( eZ\Publish\API\Repository\Values\User\Limitation\NewObjectStateLimitation $limitation )
testValueSchema ( NewObjectStateLimitationType $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 Handler mock.
public setUp ( )

tearDown() public method

Tear down Handler mock.
public tearDown ( )

testAcceptValue() public method

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

testAcceptValueException() public method

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

testBuildValue() public method

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

testConstruct() public method

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

testEvaluate() public method

public testEvaluate ( eZ\Publish\API\Repository\Values\User\Limitation\NewObjectStateLimitation $limitation, eZ\Publish\API\Repository\Values\ValueObject $object, array $targets, $expected )
$limitation eZ\Publish\API\Repository\Values\User\Limitation\NewObjectStateLimitation
$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

testGetCriterion() public method

public testGetCriterion ( NewObjectStateLimitationType $limitationType )
$limitationType eZ\Publish\Core\Limitation\NewObjectStateLimitationType

testValidateError() public method

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

testValidatePass() public method

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

testValueSchema() public method

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