PHP Класс eZ\Publish\Core\Repository\Tests\Service\Mock\ContentTest

Наследование: extends Base
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$contentTypeServiceMock
$domainMapperMock
$locationServiceMock
$nameSchemaServiceMock
$partlyMockedContentService eZ\Publish\Core\Repository\ContentService
$relationProcessorMock

Открытые методы

Метод Описание
assertForTestUpdateContentRequiredField ( $initialLanguageCode, $structFields, $existingFields, $fieldDefinitions )
assertForTestUpdateContentThrowsContentFieldValidationException ( $initialLanguageCode, $structFields, $existingFields, $fieldDefinitions )
internalLoadContentProvider ( )
providerForTestCreateContentNonRedundantFieldSet1 ( )
providerForTestCreateContentNonRedundantFieldSet2 ( )
providerForTestCreateContentNonRedundantFieldSetComplex ( )
providerForTestCreateContentThrowsContentFieldValidationException ( )
providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition ( )
providerForTestCreateContentThrowsContentValidationExceptionRequiredField ( )
providerForTestCreateContentThrowsContentValidationExceptionTranslation ( )
providerForTestCreateContentWithInvalidLanguage ( )
providerForTestUpdateContentNonRedundantFieldSet1 ( )
providerForTestUpdateContentNonRedundantFieldSet2 ( )
providerForTestUpdateContentNonRedundantFieldSet3 ( )
providerForTestUpdateContentNonRedundantFieldSet4 ( )
providerForTestUpdateContentNonRedundantFieldSetComplex ( ) : array
providerForTestUpdateContentRequiredField ( )
providerForTestUpdateContentThrowsBadStateException ( )
providerForTestUpdateContentThrowsContentFieldValidationException ( )
providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition ( )
providerForTestUpdateContentThrowsContentValidationExceptionTranslation ( )
providerForTestUpdateContentWithInvalidLanguage ( )
testConstructor ( ) Test for the __construct() method.
testCopyContent ( ) Test for the copyContent() method.
testCopyContentThrowsUnauthorizedException ( ) Test for the copyContent() method.
testCopyContentWithRollback ( ) Test for the copyContent() method.
testCopyContentWithVersionInfo ( ) Test for the copyContent() method.
testCreateContentNonRedundantFieldSet1 ( $mainLanguageCode, $structFields, $spiFields ) Test for the createContent() method.
testCreateContentNonRedundantFieldSet2 ( $mainLanguageCode, $structFields, $spiFields ) Test for the createContent() method.
testCreateContentNonRedundantFieldSetComplex ( $mainLanguageCode, $structFields, $spiFields ) Test for the createContent() method.
testCreateContentObjectStates ( ) Test for the createContent() method.
testCreateContentRequiredField ( $mainLanguageCode, $structFields, $identifier, $languageCode ) Test for the createContent() method.
testCreateContentThrowsContentFieldValidationException ( $mainLanguageCode, $structFields ) Test for the createContent() method.
testCreateContentThrowsContentValidationExceptionFieldDefinition ( $mainLanguageCode, $structFields ) Test for the createContent() method.
testCreateContentThrowsContentValidationExceptionTranslation ( $mainLanguageCode, $structFields ) Test for the createContent() method.
testCreateContentThrowsInvalidArgumentExceptionContentTypeNotSet ( ) Test for the createContent() method.
testCreateContentThrowsInvalidArgumentExceptionDuplicateRemoteId ( ) Test for the createContent() method.
testCreateContentThrowsInvalidArgumentExceptionMainLanguageCodeNotSet ( ) Test for the createContent() method.
testCreateContentThrowsUnauthorizedException ( ) Test for the createContent() method.
testCreateContentWithInvalidLanguage ( $mainLanguageCode, $structFields ) Test for the updateContent() method.
testCreateContentWithLocations ( ) Test for the createContent() method.
testCreateContentWithLocationsDuplicateUnderParent ( ) Test for the createContent() method.
testCreateContentWithRollback ( ) Test for the createContent() method.
testDeleteContent ( ) Test for the deleteContent() method.
testDeleteContentThrowsUnauthorizedException ( ) Test for the deleteContent() method.
testDeleteContentWithRollback ( ) Test for the deleteContent() method.
testDeleteVersionThrowsBadStateExceptionLastVersion ( ) Test for the deleteVersion() method.
testInternalLoadContent ( $id, $languages, $versionNo, $isRemoteId, $useAlwaysAvailable )
testInternalLoadContentNotFound ( )
testLoadContent ( )
testLoadContentByContentInfo ( ) Test for the loadContentByContentInfo() method.
testLoadContentByVersionInfo ( ) Test for the loadContentByVersionInfo() method.
testLoadContentNonPublished ( )
testLoadContentNotPublishedStatusUnauthorized ( )
testLoadContentUnauthorized ( )
testLoadVersionInfo ( ) Test for the loadVersionInfo() method.
testLoadVersionInfoById ( ) Test for the loadVersionInfo() method.
testLoadVersionInfoByIdNonPublishedVersion ( ) Test for the loadVersionInfo() method.
testLoadVersionInfoByIdPublishedVersion ( ) Test for the loadVersionInfo() method.
testLoadVersionInfoByIdThrowsNotFoundException ( ) Test for the loadVersionInfo() method.
testLoadVersionInfoByIdThrowsUnauthorizedExceptionNonPublishedVersion ( ) Test for the loadVersionInfo() method.
testUpdateContentNonRedundantFieldSet1 ( $initialLanguageCode, $structFields, $spiFields ) Test for the updateContent() method.
testUpdateContentNonRedundantFieldSet2 ( $initialLanguageCode, $structFields, $spiFields ) Test for the updateContent() method.
testUpdateContentNonRedundantFieldSet3 ( $initialLanguageCode, $structFields, $spiFields ) Test for the updateContent() method.
testUpdateContentNonRedundantFieldSet4 ( $initialLanguageCode, $structFields, $spiFields ) Test for the updateContent() method.
testUpdateContentNonRedundantFieldSetComplex ( $initialLanguageCode, $structFields, $spiFields ) Test for the updateContent() method.
testUpdateContentRequiredField ( $initialLanguageCode, $structFields, $identifier, $languageCode ) Test for the updateContent() method.
testUpdateContentThrowsBadStateException ( $status ) Test for the updateContent() method.
testUpdateContentThrowsContentFieldValidationException ( $initialLanguageCode, $structFields ) Test for the updateContent() method.
testUpdateContentThrowsContentValidationExceptionFieldDefinition ( $initialLanguageCode, $structFields ) Test for the updateContent() method.
testUpdateContentThrowsContentValidationExceptionTranslation ( $initialLanguageCode, $structFields ) Test for the updateContent() method.
testUpdateContentThrowsUnauthorizedException ( ) Test for the updateContent() method.
testUpdateContentTransactionRollback ( ) Test for the updateContent() method.
testUpdateContentWithInvalidLanguage ( $initialLanguageCode, $structFields ) Test for the updateContent() method.

Защищенные методы

Метод Описание
assertForCreateContentContentValidationException ( $mainLanguageCode, $structFields, $fieldDefinitions = [] )
assertForTestCreateContentNonRedundantFieldSet ( string $mainLanguageCode, array $structFields, array $spiFields, array $fieldDefinitions, array $locationCreateStructs = [], $withObjectStates = false, boolean $execute = true ) : mixed Asserts that calling createContent() with given API field set causes calling Handler::createContent() with given SPI field set.
assertForTestCreateContentRequiredField ( string $mainLanguageCode, array $structFields, array $fieldDefinitions ) : mixed Asserts behaviour necessary for testing ContentFieldValidationException because of required field being empty.
assertForTestCreateContentThrowsContentFieldValidationException ( string $mainLanguageCode, array $structFields, array $fieldDefinitions ) : mixed Asserts behaviour necessary for testing ContentFieldValidationException because of field not being valid.
assertForTestUpdateContentNonRedundantFieldSet ( string $initialLanguageCode, array $structFields, array $spiFields, array $existingFields, array $fieldDefinitions, boolean $execute = true ) : mixed Asserts that calling updateContent() with given API field set causes calling Handler::updateContent() with given SPI field set.
assertForUpdateContentContentValidationException ( $initialLanguageCode, $structFields, $fieldDefinitions = [] )
determineLanguageCodesForCreate ( string $mainLanguageCode, array $structFields ) : string[]
determineLanguageCodesForUpdate ( string $initialLanguageCode, array $structFields, string[] $existingLanguages ) : string[]
determineValuesForCreate ( string $mainLanguageCode, array $structFields, array $fieldDefinitions, array $languageCodes ) : array Returns full, possibly redundant array of field values, indexed by field definition identifier and language code.
determineValuesForUpdate ( string $initialLanguageCode, array $structFields, Content $content, array $fieldDefinitions, array $languageCodes ) : array Returns full, possibly redundant array of field values, indexed by field definition identifier and language code.
fixturesForTestCreateContentNonRedundantFieldSetComplex ( )
fixturesForTestUpdateContentNonRedundantFieldSetComplex ( )
getContentTypeServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\ContentTypeService
getDomainMapperMock ( ) : PHPUnit_Framework_MockObject_MockObject | DomainMapper
getLocationServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\LocationService
getNameSchemaServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | NameSchemaService
getPartlyMockedContentService ( array $methods = null ) : ContentService | PHPUnit_Framework_MockObject_MockObject Returns the content service to test with $methods mocked.
getRelationProcessorMock ( ) : PHPUnit_Framework_MockObject_MockObject | RelationProcessor
mapStructFieldsForCreate ( string $mainLanguageCode, eZ\Publish\API\Repository\Values\Content\Field[] $structFields, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions ) : array
mapStructFieldsForUpdate ( string $initialLanguageCode, eZ\Publish\API\Repository\Values\Content\Field[] $structFields, string $mainLanguageCode, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions ) : array
mockGetDefaultObjectStates ( )
mockPublishUrlAliasesForContent ( eZ\Publish\API\Repository\Values\Content\Content $content )
mockPublishVersion ( integer | null $publicationDate = null ) : eZ\Publish\API\Repository\Values\Content\Content
mockSetDefaultObjectStates ( )
stubValues ( array $fieldValues )

Описание методов

assertForCreateContentContentValidationException() защищенный Метод

protected assertForCreateContentContentValidationException ( $mainLanguageCode, $structFields, $fieldDefinitions = [] )

assertForTestCreateContentNonRedundantFieldSet() защищенный Метод

Asserts that calling createContent() with given API field set causes calling Handler::createContent() with given SPI field set.
protected assertForTestCreateContentNonRedundantFieldSet ( string $mainLanguageCode, array $structFields, array $spiFields, array $fieldDefinitions, array $locationCreateStructs = [], $withObjectStates = false, boolean $execute = true ) : mixed
$mainLanguageCode string
$structFields array
$spiFields array
$fieldDefinitions array
$locationCreateStructs array
$execute boolean
Результат mixed

assertForTestCreateContentRequiredField() защищенный Метод

Asserts behaviour necessary for testing ContentFieldValidationException because of required field being empty.
protected assertForTestCreateContentRequiredField ( string $mainLanguageCode, array $structFields, array $fieldDefinitions ) : mixed
$mainLanguageCode string
$structFields array
$fieldDefinitions array
Результат mixed

assertForTestCreateContentThrowsContentFieldValidationException() защищенный Метод

Asserts behaviour necessary for testing ContentFieldValidationException because of field not being valid.
protected assertForTestCreateContentThrowsContentFieldValidationException ( string $mainLanguageCode, array $structFields, array $fieldDefinitions ) : mixed
$mainLanguageCode string
$structFields array
$fieldDefinitions array
Результат mixed

assertForTestUpdateContentNonRedundantFieldSet() защищенный Метод

Asserts that calling updateContent() with given API field set causes calling Handler::updateContent() with given SPI field set.
protected assertForTestUpdateContentNonRedundantFieldSet ( string $initialLanguageCode, array $structFields, array $spiFields, array $existingFields, array $fieldDefinitions, boolean $execute = true ) : mixed
$initialLanguageCode string
$structFields array
$spiFields array
$existingFields array
$fieldDefinitions array
$execute boolean
Результат mixed

assertForTestUpdateContentRequiredField() публичный Метод

public assertForTestUpdateContentRequiredField ( $initialLanguageCode, $structFields, $existingFields, $fieldDefinitions )

assertForTestUpdateContentThrowsContentFieldValidationException() публичный Метод

public assertForTestUpdateContentThrowsContentFieldValidationException ( $initialLanguageCode, $structFields, $existingFields, $fieldDefinitions )

assertForUpdateContentContentValidationException() защищенный Метод

protected assertForUpdateContentContentValidationException ( $initialLanguageCode, $structFields, $fieldDefinitions = [] )

determineLanguageCodesForCreate() защищенный Метод

protected determineLanguageCodesForCreate ( string $mainLanguageCode, array $structFields ) : string[]
$mainLanguageCode string
$structFields array
Результат string[]

determineLanguageCodesForUpdate() защищенный Метод

protected determineLanguageCodesForUpdate ( string $initialLanguageCode, array $structFields, string[] $existingLanguages ) : string[]
$initialLanguageCode string
$structFields array
$existingLanguages string[]
Результат string[]

determineValuesForCreate() защищенный Метод

Returns full, possibly redundant array of field values, indexed by field definition identifier and language code.
protected determineValuesForCreate ( string $mainLanguageCode, array $structFields, array $fieldDefinitions, array $languageCodes ) : array
$mainLanguageCode string
$structFields array
$fieldDefinitions array
$languageCodes array
Результат array

determineValuesForUpdate() защищенный Метод

Returns full, possibly redundant array of field values, indexed by field definition identifier and language code.
protected determineValuesForUpdate ( string $initialLanguageCode, array $structFields, Content $content, array $fieldDefinitions, array $languageCodes ) : array
$initialLanguageCode string
$structFields array
$content eZ\Publish\Core\Repository\Values\Content\Content
$fieldDefinitions array
$languageCodes array
Результат array

fixturesForTestCreateContentNonRedundantFieldSetComplex() защищенный Метод

fixturesForTestUpdateContentNonRedundantFieldSetComplex() защищенный Метод

getContentTypeServiceMock() защищенный Метод

protected getContentTypeServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\ContentTypeService
Результат PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\ContentTypeService

getDomainMapperMock() защищенный Метод

protected getDomainMapperMock ( ) : PHPUnit_Framework_MockObject_MockObject | DomainMapper
Результат PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Repository\Helper\DomainMapper

getLocationServiceMock() защищенный Метод

protected getLocationServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\LocationService
Результат PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\LocationService

getNameSchemaServiceMock() защищенный Метод

protected getNameSchemaServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | NameSchemaService
Результат PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Repository\Helper\NameSchemaService

getPartlyMockedContentService() защищенный Метод

Injected Repository comes from {@see \getRepositoryMock()} and persistence handler from {@see \getPersistenceMock()}
protected getPartlyMockedContentService ( array $methods = null ) : ContentService | PHPUnit_Framework_MockObject_MockObject
$methods array
Результат eZ\Publish\Core\Repository\ContentService | PHPUnit_Framework_MockObject_MockObject

getRelationProcessorMock() защищенный Метод

protected getRelationProcessorMock ( ) : PHPUnit_Framework_MockObject_MockObject | RelationProcessor
Результат PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Repository\Helper\RelationProcessor

internalLoadContentProvider() публичный Метод

mapStructFieldsForCreate() защищенный Метод

protected mapStructFieldsForCreate ( string $mainLanguageCode, eZ\Publish\API\Repository\Values\Content\Field[] $structFields, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions ) : array
$mainLanguageCode string
$structFields eZ\Publish\API\Repository\Values\Content\Field[]
$fieldDefinitions eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]
Результат array

mapStructFieldsForUpdate() защищенный Метод

protected mapStructFieldsForUpdate ( string $initialLanguageCode, eZ\Publish\API\Repository\Values\Content\Field[] $structFields, string $mainLanguageCode, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions ) : array
$initialLanguageCode string
$structFields eZ\Publish\API\Repository\Values\Content\Field[]
$mainLanguageCode string
$fieldDefinitions eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]
Результат array

mockGetDefaultObjectStates() защищенный Метод

mockPublishUrlAliasesForContent() защищенный Метод

protected mockPublishUrlAliasesForContent ( eZ\Publish\API\Repository\Values\Content\Content $content )
$content eZ\Publish\API\Repository\Values\Content\Content

mockPublishVersion() защищенный Метод

protected mockPublishVersion ( integer | null $publicationDate = null ) : eZ\Publish\API\Repository\Values\Content\Content
$publicationDate integer | null
Результат eZ\Publish\API\Repository\Values\Content\Content

mockSetDefaultObjectStates() защищенный Метод

providerForTestCreateContentNonRedundantFieldSet1() публичный Метод

providerForTestCreateContentNonRedundantFieldSet2() публичный Метод

providerForTestCreateContentNonRedundantFieldSetComplex() публичный Метод

providerForTestCreateContentThrowsContentFieldValidationException() публичный Метод

providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition() публичный Метод

providerForTestCreateContentThrowsContentValidationExceptionRequiredField() публичный Метод

providerForTestCreateContentThrowsContentValidationExceptionTranslation() публичный Метод

providerForTestCreateContentWithInvalidLanguage() публичный Метод

providerForTestUpdateContentNonRedundantFieldSet1() публичный Метод

providerForTestUpdateContentNonRedundantFieldSet2() публичный Метод

providerForTestUpdateContentNonRedundantFieldSet3() публичный Метод

providerForTestUpdateContentNonRedundantFieldSet4() публичный Метод

providerForTestUpdateContentNonRedundantFieldSetComplex() публичный Метод

providerForTestUpdateContentRequiredField() публичный Метод

providerForTestUpdateContentThrowsBadStateException() публичный Метод

providerForTestUpdateContentThrowsContentFieldValidationException() публичный Метод

providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition() публичный Метод

providerForTestUpdateContentThrowsContentValidationExceptionTranslation() публичный Метод

providerForTestUpdateContentWithInvalidLanguage() публичный Метод

stubValues() защищенный Метод

protected stubValues ( array $fieldValues )
$fieldValues array

testConstructor() публичный Метод

Test for the __construct() method.
public testConstructor ( )

testCopyContent() публичный Метод

Test for the copyContent() method.
public testCopyContent ( )

testCopyContentThrowsUnauthorizedException() публичный Метод

Test for the copyContent() method.

testCopyContentWithRollback() публичный Метод

Test for the copyContent() method.

testCopyContentWithVersionInfo() публичный Метод

Test for the copyContent() method.

testCreateContentNonRedundantFieldSet1() публичный Метод

Testing the simplest use case.
public testCreateContentNonRedundantFieldSet1 ( $mainLanguageCode, $structFields, $spiFields )

testCreateContentNonRedundantFieldSet2() публичный Метод

Testing multiple languages with multiple translatable fields with empty default value.
public testCreateContentNonRedundantFieldSet2 ( $mainLanguageCode, $structFields, $spiFields )

testCreateContentNonRedundantFieldSetComplex() публичный Метод

Testing multiple languages with multiple translatable fields with empty default value.
public testCreateContentNonRedundantFieldSetComplex ( $mainLanguageCode, $structFields, $spiFields )

testCreateContentObjectStates() публичный Метод

Test for the createContent() method.

testCreateContentRequiredField() публичный Метод

Test for the createContent() method.
public testCreateContentRequiredField ( $mainLanguageCode, $structFields, $identifier, $languageCode )

testCreateContentThrowsContentFieldValidationException() публичный Метод

Test for the createContent() method.
public testCreateContentThrowsContentFieldValidationException ( $mainLanguageCode, $structFields )

testCreateContentThrowsContentValidationExceptionFieldDefinition() публичный Метод

Test for the createContent() method.
public testCreateContentThrowsContentValidationExceptionFieldDefinition ( $mainLanguageCode, $structFields )

testCreateContentThrowsContentValidationExceptionTranslation() публичный Метод

Test for the createContent() method.
public testCreateContentThrowsContentValidationExceptionTranslation ( $mainLanguageCode, $structFields )

testCreateContentThrowsInvalidArgumentExceptionContentTypeNotSet() публичный Метод

Test for the createContent() method.

testCreateContentThrowsInvalidArgumentExceptionDuplicateRemoteId() публичный Метод

Test for the createContent() method.

testCreateContentThrowsInvalidArgumentExceptionMainLanguageCodeNotSet() публичный Метод

Test for the createContent() method.

testCreateContentThrowsUnauthorizedException() публичный Метод

Test for the createContent() method.

testCreateContentWithInvalidLanguage() публичный Метод

Test for the updateContent() method.
public testCreateContentWithInvalidLanguage ( $mainLanguageCode, $structFields )

testCreateContentWithLocations() публичный Метод

Test for the createContent() method.

testCreateContentWithLocationsDuplicateUnderParent() публичный Метод

Test for the createContent() method.

testCreateContentWithRollback() публичный Метод

Test for the createContent() method.

testDeleteContent() публичный Метод

Test for the deleteContent() method.
public testDeleteContent ( )

testDeleteContentThrowsUnauthorizedException() публичный Метод

Test for the deleteContent() method.

testDeleteContentWithRollback() публичный Метод

Test for the deleteContent() method.

testDeleteVersionThrowsBadStateExceptionLastVersion() публичный Метод

Test for the deleteVersion() method.

testInternalLoadContent() публичный Метод

public testInternalLoadContent ( $id, $languages, $versionNo, $isRemoteId, $useAlwaysAvailable )

testInternalLoadContentNotFound() публичный Метод

testLoadContent() публичный Метод

public testLoadContent ( )

testLoadContentByContentInfo() публичный Метод

Test for the loadContentByContentInfo() method.

testLoadContentByVersionInfo() публичный Метод

Test for the loadContentByVersionInfo() method.

testLoadContentNonPublished() публичный Метод

testLoadContentNotPublishedStatusUnauthorized() публичный Метод

testLoadContentUnauthorized() публичный Метод

testLoadVersionInfo() публичный Метод

Test for the loadVersionInfo() method.
public testLoadVersionInfo ( )

testLoadVersionInfoById() публичный Метод

Test for the loadVersionInfo() method.

testLoadVersionInfoByIdNonPublishedVersion() публичный Метод

Test for the loadVersionInfo() method.

testLoadVersionInfoByIdPublishedVersion() публичный Метод

Test for the loadVersionInfo() method.

testLoadVersionInfoByIdThrowsNotFoundException() публичный Метод

Test for the loadVersionInfo() method.

testLoadVersionInfoByIdThrowsUnauthorizedExceptionNonPublishedVersion() публичный Метод

Test for the loadVersionInfo() method.

testUpdateContentNonRedundantFieldSet1() публичный Метод

Testing the simplest use case.
public testUpdateContentNonRedundantFieldSet1 ( $initialLanguageCode, $structFields, $spiFields )

testUpdateContentNonRedundantFieldSet2() публичный Метод

Testing with translatable field.
public testUpdateContentNonRedundantFieldSet2 ( $initialLanguageCode, $structFields, $spiFields )

testUpdateContentNonRedundantFieldSet3() публичный Метод

Testing with new language and untranslatable field.
public testUpdateContentNonRedundantFieldSet3 ( $initialLanguageCode, $structFields, $spiFields )

testUpdateContentNonRedundantFieldSet4() публичный Метод

Testing with empty values.
public testUpdateContentNonRedundantFieldSet4 ( $initialLanguageCode, $structFields, $spiFields )

testUpdateContentNonRedundantFieldSetComplex() публичный Метод

Testing more complex cases.
public testUpdateContentNonRedundantFieldSetComplex ( $initialLanguageCode, $structFields, $spiFields )

testUpdateContentRequiredField() публичный Метод

Test for the updateContent() method.
public testUpdateContentRequiredField ( $initialLanguageCode, $structFields, $identifier, $languageCode )

testUpdateContentThrowsBadStateException() публичный Метод

Test for the updateContent() method.

testUpdateContentThrowsContentFieldValidationException() публичный Метод

Test for the updateContent() method.
public testUpdateContentThrowsContentFieldValidationException ( $initialLanguageCode, $structFields )

testUpdateContentThrowsContentValidationExceptionFieldDefinition() публичный Метод

Test for the updateContent() method.
public testUpdateContentThrowsContentValidationExceptionFieldDefinition ( $initialLanguageCode, $structFields )

testUpdateContentThrowsContentValidationExceptionTranslation() публичный Метод

Test for the updateContent() method.
public testUpdateContentThrowsContentValidationExceptionTranslation ( $initialLanguageCode, $structFields )

testUpdateContentThrowsUnauthorizedException() публичный Метод

Test for the updateContent() method.

testUpdateContentTransactionRollback() публичный Метод

Test for the updateContent() method.

testUpdateContentWithInvalidLanguage() публичный Метод

Test for the updateContent() method.
public testUpdateContentWithInvalidLanguage ( $initialLanguageCode, $structFields )

Описание свойств

$contentTypeServiceMock защищенное свойство

protected $contentTypeServiceMock

$domainMapperMock защищенное свойство

protected $domainMapperMock

$locationServiceMock защищенное свойство

protected $locationServiceMock

$nameSchemaServiceMock защищенное свойство

protected $nameSchemaServiceMock

$partlyMockedContentService защищенное свойство

protected ContentService,eZ\Publish\Core\Repository $partlyMockedContentService
Результат eZ\Publish\Core\Repository\ContentService

$relationProcessorMock защищенное свойство

protected $relationProcessorMock