PHP Class eZ\Publish\Core\Repository\Tests\Service\Integration\ContentTypeBase

Inheritance: extends Base
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$contentTypeGroups

Public Methods

Method Description
assertAddFieldDefinitionStructValues ( $loadedType, $fieldDefCreate )
testAddFieldDefinitionThrowsInvalidArgumentExceptionDuplicateFieldIdentifier ( ) Test for the addFieldDefinition() method.
testAddFieldDefinitionThrowsUnauthorizedException ( ) Test for the addFieldDefinition() method.
testAddFieldDefinitionWithSettings ( ) : array Test for the addFieldDefinition() method.
testAddFieldDefinitionWithValidators ( ) : array Test for the addFieldDefinition() method.
testAssignContentTypeGroup ( ) Test for the assignContentTypeGroup() method.
testAssignContentTypeGroupThrowsInvalidArgumentException ( ) Test for the assignContentTypeGroup() method.
testAssignContentTypeGroupThrowsUnauthorizedException ( ) Test for the assignContentTypeGroup() method.
testCopyContentType ( ) : array Test for the copyContentType() method.
testCopyContentTypeThrowsUnauthorizedException ( ) Test for the copyContentType() method.
testCopyContentTypeValues ( array $data ) Test for the copyContentType() method.
testCopyContentTypeWithSecondArgument ( ) : array Test for the copyContentType() method.
testCopyContentTypeWithSecondArgumentValues ( array $data ) Test for the copyContentType() method.
testCreateContentType ( ) : array Test for the createContentTypeGroup() method.
testCreateContentTypeDraft ( ) : array Test for the createContentTypeDraft() method.
testCreateContentTypeDraftThrowsBadStateException ( ) Test for the createContentTypeDraft() method.
testCreateContentTypeDraftThrowsUnauthorizedException ( ) Test for the createContentTypeDraft() method.
testCreateContentTypeDraftValues ( array $data ) Test for the createContentTypeDraft() method.
testCreateContentTypeGroup ( ) : array Test for the createContentTypeGroup() method.
testCreateContentTypeGroupStructValues ( array $data ) Test for the newContentTypeGroupCreateStruct() method.
testCreateContentTypeGroupThrowsInvalidArgumentException ( ) Test for the createContentTypeGroup() method.
testCreateContentTypeGroupThrowsUnauthorizedException ( ) Test for the createContentTypeGroup() method.
testCreateContentTypeStructValues ( array $data ) Test for the newContentTypeGroupCreateStruct() method.
testCreateContentTypeThrowsInvalidArgumentExceptionContentTypeExistsWithIdentifier ( ) Test for the createContentTypeGroup() method.
testCreateContentTypeThrowsInvalidArgumentExceptionContentTypeExistsWithRemoteId ( ) Test for the createContentTypeGroup() method.
testCreateContentTypeThrowsInvalidArgumentExceptionDuplicateFieldDefinitionIdentifier ( ) : array Test for the createContentTypeGroup() method.
testCreateContentTypeThrowsInvalidArgumentExceptionGroupsEmpty ( ) Test for the createContentTypeGroup() method.
testCreateContentTypeWithoutFieldDefinitions ( ) : array Test for the createContentTypeGroup() method.
testDeleteContentType ( ) Test for the deleteContentType() method.
testDeleteContentTypeGroup ( ) Test for the deleteContentTypeGroup() method.
testDeleteContentTypeGroupThrowsInvalidArgumentException ( ) Test for the deleteContentTypeGroup() method.
testDeleteContentTypeGroupThrowsUnauthorizedException ( ) Test for the deleteContentTypeGroup() method.
testDeleteContentTypeThrowsBadStateException ( ) Test for the deleteContentType() method.
testDeleteContentTypeThrowsUnauthorizedException ( ) Test for the deleteContentType() method.
testLoadContentType ( ) : array Test for the loadContentType() method.
testLoadContentTypeByIdentifier ( ) : array Test for the loadContentTypeByIdentifier() method.
testLoadContentTypeByIdentifierThrowsNotFoundException ( ) Test for the loadContentTypeByIdentifier() method.
testLoadContentTypeByIdentifierValues ( array $data ) Test for the loadContentTypeByIdentifier() method.
testLoadContentTypeByRemoteId ( ) : array Test for the loadContentTypeByRemoteId() method.
testLoadContentTypeByRemoteIdThrowsNotFoundException ( ) Test for the loadContentTypeByRemoteId() method.
testLoadContentTypeByRemoteIdValues ( array $data ) Test for the loadContentTypeByRemoteId() method.
testLoadContentTypeDraft ( ) : array Test for the loadContentTypeDraft() method.
testLoadContentTypeDraftThrowsNotFoundException ( ) : array Test for the loadContentTypeDraft() method.
testLoadContentTypeDraftValues ( array $data ) : array Test for the loadContentTypeDraft() method.
testLoadContentTypeGroup ( ) : array Test for the loadContentTypeGroup() method.
testLoadContentTypeGroupByIdentifier ( ) : array Test for the loadContentTypeGroupByIdentifier() method.
testLoadContentTypeGroupByIdentifierThrowsNotFoundException ( ) Test for the loadContentTypeGroupByIdentifier() method.
testLoadContentTypeGroupByIdentifierValues ( array $data ) Test for the loadContentTypeGroupByIdentifier() method.
testLoadContentTypeGroupThrowsNotFoundException ( ) Test for the loadContentTypeGroup() method.
testLoadContentTypeGroupValues ( array $data ) Test for the loadContentTypeGroup() method.
testLoadContentTypeGroups ( ) : array Test for the loadContentTypeGroups() method.
testLoadContentTypeGroupsIdentifiers ( array $groups ) Test for the loadContentTypeGroups() method.
testLoadContentTypeThrowsNotFoundException ( ) Test for the loadContentType() method.
testLoadContentTypeValues ( array $data ) Test for the loadContentType() method.
testLoadContentTypes ( ) : array Test for the loadContentTypes() method.
testLoadContentTypesIdentifiers ( array $types ) Test for the loadContentTypeGroups() method.
testNewContentTypeCreateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct Test for the newContentTypeCreateStruct() method.
testNewContentTypeCreateStructValues ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct $contentTypeCreateStruct ) Test for the newContentTypeCreateStruct() method.
testNewContentTypeGroupCreateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct Test for the newContentTypeGroupCreateStruct() method.
testNewContentTypeGroupCreateStructValues ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct $createStruct ) Test for the newContentTypeGroupCreateStruct() method.
testNewContentTypeGroupUpdateStruct ( ) Test for the newContentTypeGroupUpdateStruct() method.
testNewContentTypeUpdateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct Test for the newContentTypeUpdateStruct() method.
testNewContentTypeUpdateStructValues ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct $contentTypeUpdateStruct ) Test for the newContentTypeUpdateStruct() method.
testNewFieldDefinitionCreateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct Test for the newContentTypeCreateStruct() method.
testNewFieldDefinitionCreateStructValues ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefinitionCreateStruct ) Test for the newContentTypeCreateStruct() method.
testNewFieldDefinitionUpdateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct Test for the newFieldDefinitionUpdateStruct() method.
testNewFieldDefinitionUpdateStructValues ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct $fieldDefinitionUpdateStruct ) Test for the newFieldDefinitionUpdateStruct() method.
testPublishContentTypeDraft ( ) Test for the publishContentTypeDraft() method.
testPublishContentTypeDraftSetsNameSchema ( ) Test for the publishContentTypeDraft() method.
testPublishContentTypeDraftThrowsBadStateException ( ) Test for the publishContentTypeDraft() method.
testPublishContentTypeDraftThrowsInvalidArgumentException ( ) Test for the publishContentTypeDraft() method.
testPublishContentTypeDraftThrowsUnauthorizedException ( ) Test for the publishContentTypeDraft() method.
testRemoveFieldDefinition ( ) : array Test for the removeFieldDefinition() method.
testRemoveFieldDefinitionRemoved ( array $data ) Test for the removeFieldDefinition() method.
testRemoveFieldDefinitionThrowsInvalidArgumentException ( ) Test for the removeFieldDefinition() method.
testRemoveFieldDefinitionThrowsInvalidArgumentExceptionVariation ( ) Test for the removeFieldDefinition() method.
testRemoveFieldDefinitionThrowsUnauthorizedException ( ) Test for the removeFieldDefinition() method.
testUnassignContentTypeGroup ( ) Test for the unassignContentTypeGroup() method.
testUnassignContentTypeGroupThrowsBadStateException ( ) Test for the unassignContentTypeGroup() method.
testUnassignContentTypeGroupThrowsInvalidArgumentException ( ) Test for the unassignContentTypeGroup() method.
testUnassignContentTypeGroupThrowsUnauthorizedException ( ) Test for the unassignContentTypeGroup() method.
testUpdateContentTypeDraft ( ) : array Test for the updateContentTypeDraft() method.
testUpdateContentTypeDraftStructValues ( array $data ) Test for the updateContentTypeDraft() method.
testUpdateContentTypeDraftThrowsInvalidArgumentExceptionDuplicateIdentifier ( ) Test for the updateContentTypeDraft() method.
testUpdateContentTypeDraftThrowsInvalidArgumentExceptionDuplicateRemoteId ( ) Test for the updateContentTypeDraft() method.
testUpdateContentTypeDraftThrowsInvalidArgumentExceptionNoDraftForAuthenticatedUser ( ) Test for the updateContentTypeDraft() method.
testUpdateContentTypeDraftThrowsUnauthorizedException ( ) Test for the updateContentTypeDraft() method.
testUpdateContentTypeGroup ( ) : array Test for the updateContentTypeGroup() method.
testUpdateContentTypeGroupStructValues ( array $data ) Test for the updateContentTypeGroup() method.
testUpdateContentTypeGroupThrowsInvalidArgumentException ( ) Test for the updateContentTypeGroup() method.
testUpdateContentTypeGroupThrowsUnauthorizedException ( ) Test for the updateContentTypeGroup() method.
testUpdateFieldDefinition ( ) : array Test for the updateFieldDefinition() method.
testUpdateFieldDefinitionThrowsInvalidArgumentExceptionFieldIdNotFound ( ) Test for the updateFieldDefinition() method.
testUpdateFieldDefinitionThrowsInvalidArgumentExceptionFieldIdentifierExists ( ) Test for the updateFieldDefinition() method.
testUpdateFieldDefinitionThrowsUnauthorizedException ( ) Test for the updateFieldDefinition() method.
testUpdateFieldDefinitionWithEmptyStruct ( ) Test for the updateFieldDefinition() method.
testUpdateFieldDefinitionWithValidatorConfiguration ( ) : array Test for the updateFieldDefinition() method.

Protected Methods

Method Description
assertContentTypeGroupsCorrect ( array $expectedGroups, array $actualGroups ) Asserts that two sets of ContentTypeGroups are equal.
assertContentTypeGroupsEqual ( array $data ) Asserts that two given ContentTypeGroup objects contain the same group data.
assertCopyContentTypeValues ( array $data ) Asserts that copied content type is valid copy of original content type.
assertCreatedFieldDefinitionCorrect ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefinitionCreateStruct, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition ) Asserts that a field definition has been correctly created.
assertCreatedFieldDefinitionsCorrect ( array $expectedDefinitionCreates, array $actualDefinitions ) Asserts field definition creation.
assertUpdateFieldDefinitionStructValues ( $originalField, $updatedField, $updateStruct )
compareContentTypes ( array $data, array $properties = [], array $fieldProperties = [] ) Compares two given ContentType objects.
compareFieldDefinitions ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $expectedFieldDefinition, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $actualFieldDefinition, array $properties = [] ) Compares two FieldDefinition objects.
createContentType ( boolean $publish = true, integer $creatorId = null ) : eZ\Publish\API\Repository\Values\ContentType\ContentType | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft Creates a ContentType with identifier "new-type" and remoteId "new-remoteid".
createContentTypeGroup ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup Creates a group with identifier "new-group".
createDraftContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft Creates a ContentTypeDraft with identifier "new-type" and remoteId "new-remoteid".
createGroups ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[] Creates a number of ContentTypeGroup objects and returns them.
createPublishedContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType Creates a ContentType with identifier "new-type" and remoteId "new-remoteid".

Method Details

assertAddFieldDefinitionStructValues() public method

public assertAddFieldDefinitionStructValues ( $loadedType, $fieldDefCreate )

assertContentTypeGroupsCorrect() protected method

Asserts that two sets of ContentTypeGroups are equal.
protected assertContentTypeGroupsCorrect ( array $expectedGroups, array $actualGroups )
$expectedGroups array
$actualGroups array

assertContentTypeGroupsEqual() protected method

Asserts that two given ContentTypeGroup objects contain the same group data.
protected assertContentTypeGroupsEqual ( array $data )
$data array

assertCopyContentTypeValues() protected method

Asserts that copied content type is valid copy of original content type.
protected assertCopyContentTypeValues ( array $data )
$data array

assertCreatedFieldDefinitionCorrect() protected method

Asserts that the given $fieldDefinition is correctly created from the create struct in $fieldDefinitionCreateStruct.
protected assertCreatedFieldDefinitionCorrect ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefinitionCreateStruct, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition )
$fieldDefinitionCreateStruct eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct
$fieldDefinition eZ\Publish\API\Repository\Values\ContentType\FieldDefinition

assertCreatedFieldDefinitionsCorrect() protected method

Asserts that all field definitions defined through created structs in $expectedDefinitionCreates have been correctly created in $actualDefinitions.
protected assertCreatedFieldDefinitionsCorrect ( array $expectedDefinitionCreates, array $actualDefinitions )
$expectedDefinitionCreates array
$actualDefinitions array

assertUpdateFieldDefinitionStructValues() protected method

protected assertUpdateFieldDefinitionStructValues ( $originalField, $updatedField, $updateStruct )

compareContentTypes() protected method

Compares two given ContentType objects.
protected compareContentTypes ( array $data, array $properties = [], array $fieldProperties = [] )
$data array
$properties array
$fieldProperties array

compareFieldDefinitions() protected method

Compares two FieldDefinition objects.
protected compareFieldDefinitions ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $expectedFieldDefinition, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $actualFieldDefinition, array $properties = [] )
$expectedFieldDefinition eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$actualFieldDefinition eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$properties array Array of field names to skip or compare as not equal

createContentType() protected method

Creates a ContentType with identifier "new-type" and remoteId "new-remoteid".
protected createContentType ( boolean $publish = true, integer $creatorId = null ) : eZ\Publish\API\Repository\Values\ContentType\ContentType | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft
$publish boolean
$creatorId integer
return eZ\Publish\API\Repository\Values\ContentType\ContentType | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft

createContentTypeGroup() protected method

Creates a group with identifier "new-group".
protected createContentTypeGroup ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup
return eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup

createDraftContentType() protected method

Creates a ContentTypeDraft with identifier "new-type" and remoteId "new-remoteid".
protected createDraftContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft
return eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft

createGroups() protected method

Creates a number of ContentTypeGroup objects and returns them.
protected createGroups ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[]
return eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[]

createPublishedContentType() protected method

Creates a ContentType with identifier "new-type" and remoteId "new-remoteid".
protected createPublishedContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType
return eZ\Publish\API\Repository\Values\ContentType\ContentType

testAddFieldDefinitionThrowsInvalidArgumentExceptionDuplicateFieldIdentifier() public method

Test for the addFieldDefinition() method.

testAddFieldDefinitionThrowsUnauthorizedException() public method

Test for the addFieldDefinition() method.

testAddFieldDefinitionWithSettings() public method

Test for the addFieldDefinition() method.

testAddFieldDefinitionWithValidators() public method

Test for the addFieldDefinition() method.

testAssignContentTypeGroup() public method

Test for the assignContentTypeGroup() method.

testAssignContentTypeGroupThrowsInvalidArgumentException() public method

Test for the assignContentTypeGroup() method.

testAssignContentTypeGroupThrowsUnauthorizedException() public method

Test for the assignContentTypeGroup() method.

testCopyContentType() public method

Test for the copyContentType() method.
public testCopyContentType ( ) : array
return array

testCopyContentTypeThrowsUnauthorizedException() public method

Test for the copyContentType() method.

testCopyContentTypeValues() public method

Test for the copyContentType() method.
public testCopyContentTypeValues ( array $data )
$data array

testCopyContentTypeWithSecondArgument() public method

Test for the copyContentType() method.

testCopyContentTypeWithSecondArgumentValues() public method

Test for the copyContentType() method.

testCreateContentType() public method

Test for the createContentTypeGroup() method.
public testCreateContentType ( ) : array
return array

testCreateContentTypeDraft() public method

Test for the createContentTypeDraft() method.
public testCreateContentTypeDraft ( ) : array
return array

testCreateContentTypeDraftThrowsBadStateException() public method

Test for the createContentTypeDraft() method.

testCreateContentTypeDraftThrowsUnauthorizedException() public method

Test for the createContentTypeDraft() method.

testCreateContentTypeDraftValues() public method

Test for the createContentTypeDraft() method.

testCreateContentTypeGroup() public method

Test for the createContentTypeGroup() method.
public testCreateContentTypeGroup ( ) : array
return array

testCreateContentTypeGroupStructValues() public method

Test for the newContentTypeGroupCreateStruct() method.

testCreateContentTypeGroupThrowsInvalidArgumentException() public method

Test for the createContentTypeGroup() method.

testCreateContentTypeGroupThrowsUnauthorizedException() public method

Test for the createContentTypeGroup() method.

testCreateContentTypeStructValues() public method

Test for the newContentTypeGroupCreateStruct() method.

testCreateContentTypeThrowsInvalidArgumentExceptionContentTypeExistsWithIdentifier() public method

Test for the createContentTypeGroup() method.

testCreateContentTypeThrowsInvalidArgumentExceptionContentTypeExistsWithRemoteId() public method

Test for the createContentTypeGroup() method.

testCreateContentTypeThrowsInvalidArgumentExceptionDuplicateFieldDefinitionIdentifier() public method

Test for the createContentTypeGroup() method.

testCreateContentTypeThrowsInvalidArgumentExceptionGroupsEmpty() public method

Test for the createContentTypeGroup() method.

testCreateContentTypeWithoutFieldDefinitions() public method

Test for the createContentTypeGroup() method.

testDeleteContentType() public method

Test for the deleteContentType() method.

testDeleteContentTypeGroup() public method

Test for the deleteContentTypeGroup() method.

testDeleteContentTypeGroupThrowsInvalidArgumentException() public method

Test for the deleteContentTypeGroup() method.

testDeleteContentTypeGroupThrowsUnauthorizedException() public method

Test for the deleteContentTypeGroup() method.

testDeleteContentTypeThrowsBadStateException() public method

Test for the deleteContentType() method.

testDeleteContentTypeThrowsUnauthorizedException() public method

Test for the deleteContentType() method.

testLoadContentType() public method

Test for the loadContentType() method.
public testLoadContentType ( ) : array
return array

testLoadContentTypeByIdentifier() public method

Test for the loadContentTypeByIdentifier() method.

testLoadContentTypeByIdentifierThrowsNotFoundException() public method

Test for the loadContentTypeByIdentifier() method.

testLoadContentTypeByIdentifierValues() public method

Test for the loadContentTypeByIdentifier() method.

testLoadContentTypeByRemoteId() public method

Test for the loadContentTypeByRemoteId() method.

testLoadContentTypeByRemoteIdThrowsNotFoundException() public method

Test for the loadContentTypeByRemoteId() method.

testLoadContentTypeByRemoteIdValues() public method

Test for the loadContentTypeByRemoteId() method.

testLoadContentTypeDraft() public method

Test for the loadContentTypeDraft() method.
public testLoadContentTypeDraft ( ) : array
return array

testLoadContentTypeDraftThrowsNotFoundException() public method

Test for the loadContentTypeDraft() method.

testLoadContentTypeDraftValues() public method

Test for the loadContentTypeDraft() method.
public testLoadContentTypeDraftValues ( array $data ) : array
$data array
return array

testLoadContentTypeGroup() public method

Test for the loadContentTypeGroup() method.
public testLoadContentTypeGroup ( ) : array
return array

testLoadContentTypeGroupByIdentifier() public method

Test for the loadContentTypeGroupByIdentifier() method.

testLoadContentTypeGroupByIdentifierThrowsNotFoundException() public method

Test for the loadContentTypeGroupByIdentifier() method.

testLoadContentTypeGroupByIdentifierValues() public method

Test for the loadContentTypeGroupByIdentifier() method.

testLoadContentTypeGroupThrowsNotFoundException() public method

Test for the loadContentTypeGroup() method.

testLoadContentTypeGroupValues() public method

Test for the loadContentTypeGroup() method.
public testLoadContentTypeGroupValues ( array $data )
$data array

testLoadContentTypeGroups() public method

Test for the loadContentTypeGroups() method.
public testLoadContentTypeGroups ( ) : array
return array

testLoadContentTypeGroupsIdentifiers() public method

Test for the loadContentTypeGroups() method.
public testLoadContentTypeGroupsIdentifiers ( array $groups )
$groups array

testLoadContentTypeThrowsNotFoundException() public method

Test for the loadContentType() method.

testLoadContentTypeValues() public method

Test for the loadContentType() method.
public testLoadContentTypeValues ( array $data )
$data array

testLoadContentTypes() public method

Test for the loadContentTypes() method.
public testLoadContentTypes ( ) : array
return array

testLoadContentTypesIdentifiers() public method

Test for the loadContentTypeGroups() method.
public testLoadContentTypesIdentifiers ( array $types )
$types array

testNewContentTypeCreateStruct() public method

Test for the newContentTypeCreateStruct() method.
public testNewContentTypeCreateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct
return eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct

testNewContentTypeCreateStructValues() public method

Test for the newContentTypeCreateStruct() method.
public testNewContentTypeCreateStructValues ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct $contentTypeCreateStruct )
$contentTypeCreateStruct eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct

testNewContentTypeGroupCreateStruct() public method

Test for the newContentTypeGroupCreateStruct() method.
public testNewContentTypeGroupCreateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct
return eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct

testNewContentTypeGroupCreateStructValues() public method

Test for the newContentTypeGroupCreateStruct() method.
public testNewContentTypeGroupCreateStructValues ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct $createStruct )
$createStruct eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct

testNewContentTypeGroupUpdateStruct() public method

Test for the newContentTypeGroupUpdateStruct() method.

testNewContentTypeUpdateStruct() public method

Test for the newContentTypeUpdateStruct() method.
public testNewContentTypeUpdateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct
return eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct

testNewContentTypeUpdateStructValues() public method

Test for the newContentTypeUpdateStruct() method.
public testNewContentTypeUpdateStructValues ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct $contentTypeUpdateStruct )
$contentTypeUpdateStruct eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct

testNewFieldDefinitionCreateStruct() public method

Test for the newContentTypeCreateStruct() method.
public testNewFieldDefinitionCreateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct
return eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct

testNewFieldDefinitionCreateStructValues() public method

Test for the newContentTypeCreateStruct() method.
public testNewFieldDefinitionCreateStructValues ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefinitionCreateStruct )
$fieldDefinitionCreateStruct eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct

testNewFieldDefinitionUpdateStruct() public method

Test for the newFieldDefinitionUpdateStruct() method.
public testNewFieldDefinitionUpdateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct
return eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct

testNewFieldDefinitionUpdateStructValues() public method

Test for the newFieldDefinitionUpdateStruct() method.
public testNewFieldDefinitionUpdateStructValues ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct $fieldDefinitionUpdateStruct )
$fieldDefinitionUpdateStruct eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct

testPublishContentTypeDraft() public method

Test for the publishContentTypeDraft() method.

testPublishContentTypeDraftSetsNameSchema() public method

Test for the publishContentTypeDraft() method.

testPublishContentTypeDraftThrowsBadStateException() public method

Test for the publishContentTypeDraft() method.

testPublishContentTypeDraftThrowsInvalidArgumentException() public method

Test for the publishContentTypeDraft() method.

testPublishContentTypeDraftThrowsUnauthorizedException() public method

Test for the publishContentTypeDraft() method.

testRemoveFieldDefinition() public method

Test for the removeFieldDefinition() method.
public testRemoveFieldDefinition ( ) : array
return array

testRemoveFieldDefinitionRemoved() public method

Test for the removeFieldDefinition() method.

testRemoveFieldDefinitionThrowsInvalidArgumentException() public method

Test for the removeFieldDefinition() method.

testRemoveFieldDefinitionThrowsInvalidArgumentExceptionVariation() public method

Test for the removeFieldDefinition() method.

testRemoveFieldDefinitionThrowsUnauthorizedException() public method

Test for the removeFieldDefinition() method.

testUnassignContentTypeGroup() public method

Test for the unassignContentTypeGroup() method.

testUnassignContentTypeGroupThrowsBadStateException() public method

Test for the unassignContentTypeGroup() method.

testUnassignContentTypeGroupThrowsInvalidArgumentException() public method

Test for the unassignContentTypeGroup() method.

testUnassignContentTypeGroupThrowsUnauthorizedException() public method

Test for the unassignContentTypeGroup() method.

testUpdateContentTypeDraft() public method

Test for the updateContentTypeDraft() method.
public testUpdateContentTypeDraft ( ) : array
return array

testUpdateContentTypeDraftStructValues() public method

Test for the updateContentTypeDraft() method.

testUpdateContentTypeDraftThrowsInvalidArgumentExceptionDuplicateIdentifier() public method

Test for the updateContentTypeDraft() method.

testUpdateContentTypeDraftThrowsInvalidArgumentExceptionDuplicateRemoteId() public method

Test for the updateContentTypeDraft() method.

testUpdateContentTypeDraftThrowsInvalidArgumentExceptionNoDraftForAuthenticatedUser() public method

Test for the updateContentTypeDraft() method.

testUpdateContentTypeDraftThrowsUnauthorizedException() public method

Test for the updateContentTypeDraft() method.

testUpdateContentTypeGroup() public method

Test for the updateContentTypeGroup() method.
public testUpdateContentTypeGroup ( ) : array
return array

testUpdateContentTypeGroupStructValues() public method

Test for the updateContentTypeGroup() method.

testUpdateContentTypeGroupThrowsInvalidArgumentException() public method

Test for the updateContentTypeGroup() method.

testUpdateContentTypeGroupThrowsUnauthorizedException() public method

Test for the updateContentTypeGroup() method.

testUpdateFieldDefinition() public method

Test for the updateFieldDefinition() method.
public testUpdateFieldDefinition ( ) : array
return array

testUpdateFieldDefinitionThrowsInvalidArgumentExceptionFieldIdNotFound() public method

Test for the updateFieldDefinition() method.

testUpdateFieldDefinitionThrowsInvalidArgumentExceptionFieldIdentifierExists() public method

Test for the updateFieldDefinition() method.

testUpdateFieldDefinitionThrowsUnauthorizedException() public method

Test for the updateFieldDefinition() method.

testUpdateFieldDefinitionWithEmptyStruct() public method

Test for the updateFieldDefinition() method.

testUpdateFieldDefinitionWithValidatorConfiguration() public method

Test for the updateFieldDefinition() method.

Property Details

$contentTypeGroups protected property

protected $contentTypeGroups