Свойство | Тип | Описание | |
---|---|---|---|
$contentTypeGroups |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
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". |
public assertAddFieldDefinitionStructValues ( $loadedType, $fieldDefCreate ) |
protected assertContentTypeGroupsCorrect ( array $expectedGroups, array $actualGroups ) | ||
$expectedGroups | array | |
$actualGroups | array |
protected assertContentTypeGroupsEqual ( array $data ) | ||
$data | array |
protected assertCopyContentTypeValues ( array $data ) | ||
$data | array |
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 |
protected assertCreatedFieldDefinitionsCorrect ( array $expectedDefinitionCreates, array $actualDefinitions ) | ||
$expectedDefinitionCreates | array | |
$actualDefinitions | array |
protected assertUpdateFieldDefinitionStructValues ( $originalField, $updatedField, $updateStruct ) |
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 |
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 | |
Результат | eZ\Publish\API\Repository\Values\ContentType\ContentType | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft |
protected createContentTypeGroup ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup |
protected createDraftContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft |
protected createGroups ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[] | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[] |
protected createPublishedContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\ContentType |
public testAddFieldDefinitionWithSettings ( ) : array | ||
Результат | array |
public testAddFieldDefinitionWithValidators ( ) : array | ||
Результат | array |
public testAssignContentTypeGroup ( ) |
public testCopyContentType ( ) : array | ||
Результат | array |
public testCopyContentTypeValues ( array $data ) | ||
$data | array |
public testCopyContentTypeWithSecondArgument ( ) : array | ||
Результат | array |
public testCopyContentTypeWithSecondArgumentValues ( array $data ) | ||
$data | array |
public testCreateContentType ( ) : array | ||
Результат | array |
public testCreateContentTypeDraft ( ) : array | ||
Результат | array |
public testCreateContentTypeDraftValues ( array $data ) | ||
$data | array |
public testCreateContentTypeGroup ( ) : array | ||
Результат | array |
public testCreateContentTypeGroupStructValues ( array $data ) | ||
$data | array |
public testCreateContentTypeStructValues ( array $data ) | ||
$data | array |
public testCreateContentTypeThrowsInvalidArgumentExceptionDuplicateFieldDefinitionIdentifier ( ) : array | ||
Результат | array |
public testCreateContentTypeWithoutFieldDefinitions ( ) : array | ||
Результат | array |
public testDeleteContentType ( ) |
public testDeleteContentTypeGroup ( ) |
public testDeleteContentTypeThrowsBadStateException ( ) |
public testLoadContentType ( ) : array | ||
Результат | array |
public testLoadContentTypeByIdentifier ( ) : array | ||
Результат | array |
public testLoadContentTypeByIdentifierValues ( array $data ) | ||
$data | array |
public testLoadContentTypeByRemoteId ( ) : array | ||
Результат | array |
public testLoadContentTypeByRemoteIdValues ( array $data ) | ||
$data | array |
public testLoadContentTypeDraft ( ) : array | ||
Результат | array |
public testLoadContentTypeDraftThrowsNotFoundException ( ) : array | ||
Результат | array |
public testLoadContentTypeDraftValues ( array $data ) : array | ||
$data | array | |
Результат | array |
public testLoadContentTypeGroup ( ) : array | ||
Результат | array |
public testLoadContentTypeGroupByIdentifier ( ) : array | ||
Результат | array |
public testLoadContentTypeGroupByIdentifierValues ( array $data ) | ||
$data | array |
public testLoadContentTypeGroupValues ( array $data ) | ||
$data | array |
public testLoadContentTypeGroups ( ) : array | ||
Результат | array |
public testLoadContentTypeGroupsIdentifiers ( array $groups ) | ||
$groups | array |
public testLoadContentTypeThrowsNotFoundException ( ) |
public testLoadContentTypeValues ( array $data ) | ||
$data | array |
public testLoadContentTypes ( ) : array | ||
Результат | array |
public testLoadContentTypesIdentifiers ( array $types ) | ||
$types | array |
public testNewContentTypeCreateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct |
public testNewContentTypeCreateStructValues ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct $contentTypeCreateStruct ) | ||
$contentTypeCreateStruct | eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct |
public testNewContentTypeGroupCreateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct |
public testNewContentTypeGroupCreateStructValues ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct $createStruct ) | ||
$createStruct | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct |
public testNewContentTypeGroupUpdateStruct ( ) |
public testNewContentTypeUpdateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct |
public testNewContentTypeUpdateStructValues ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct $contentTypeUpdateStruct ) | ||
$contentTypeUpdateStruct | eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct |
public testNewFieldDefinitionCreateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct |
public testNewFieldDefinitionCreateStructValues ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefinitionCreateStruct ) | ||
$fieldDefinitionCreateStruct | eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct |
public testNewFieldDefinitionUpdateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct |
public testNewFieldDefinitionUpdateStructValues ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct $fieldDefinitionUpdateStruct ) | ||
$fieldDefinitionUpdateStruct | eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct |
public testPublishContentTypeDraft ( ) |
public testPublishContentTypeDraftSetsNameSchema ( ) |
public testRemoveFieldDefinition ( ) : array | ||
Результат | array |
public testRemoveFieldDefinitionRemoved ( array $data ) | ||
$data | array |
public testUnassignContentTypeGroup ( ) |
public testUpdateContentTypeDraft ( ) : array | ||
Результат | array |
public testUpdateContentTypeDraftStructValues ( array $data ) | ||
$data | array |
public testUpdateContentTypeGroup ( ) : array | ||
Результат | array |
public testUpdateContentTypeGroupStructValues ( array $data ) | ||
$data | array |
public testUpdateFieldDefinition ( ) : array | ||
Результат | array |
public testUpdateFieldDefinitionWithEmptyStruct ( ) |
public testUpdateFieldDefinitionWithValidatorConfiguration ( ) : array | ||
Результат | array |