PHP Class eZ\Publish\Core\Repository\Tests\Service\Mock\ContentTest

Inheritance: extends Base
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$contentTypeServiceMock
$domainMapperMock
$locationServiceMock
$nameSchemaServiceMock
$partlyMockedContentService eZ\Publish\Core\Repository\ContentService
$relationProcessorMock

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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 )

Method Details

assertForCreateContentContentValidationException() protected méthode

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

assertForTestCreateContentNonRedundantFieldSet() protected méthode

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
Résultat mixed

assertForTestCreateContentRequiredField() protected méthode

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
Résultat mixed

assertForTestCreateContentThrowsContentFieldValidationException() protected méthode

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
Résultat mixed

assertForTestUpdateContentNonRedundantFieldSet() protected méthode

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
Résultat mixed

assertForTestUpdateContentRequiredField() public méthode

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

assertForTestUpdateContentThrowsContentFieldValidationException() public méthode

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

assertForUpdateContentContentValidationException() protected méthode

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

determineLanguageCodesForCreate() protected méthode

protected determineLanguageCodesForCreate ( string $mainLanguageCode, array $structFields ) : string[]
$mainLanguageCode string
$structFields array
Résultat string[]

determineLanguageCodesForUpdate() protected méthode

protected determineLanguageCodesForUpdate ( string $initialLanguageCode, array $structFields, string[] $existingLanguages ) : string[]
$initialLanguageCode string
$structFields array
$existingLanguages string[]
Résultat string[]

determineValuesForCreate() protected méthode

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
Résultat array

determineValuesForUpdate() protected méthode

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
Résultat array

fixturesForTestCreateContentNonRedundantFieldSetComplex() protected méthode

fixturesForTestUpdateContentNonRedundantFieldSetComplex() protected méthode

getContentTypeServiceMock() protected méthode

protected getContentTypeServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\ContentTypeService
Résultat PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\ContentTypeService

getDomainMapperMock() protected méthode

protected getDomainMapperMock ( ) : PHPUnit_Framework_MockObject_MockObject | DomainMapper
Résultat PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Repository\Helper\DomainMapper

getLocationServiceMock() protected méthode

protected getLocationServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\LocationService
Résultat PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\LocationService

getNameSchemaServiceMock() protected méthode

protected getNameSchemaServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | NameSchemaService
Résultat PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Repository\Helper\NameSchemaService

getPartlyMockedContentService() protected méthode

Injected Repository comes from {@see \getRepositoryMock()} and persistence handler from {@see \getPersistenceMock()}
protected getPartlyMockedContentService ( array $methods = null ) : ContentService | PHPUnit_Framework_MockObject_MockObject
$methods array
Résultat eZ\Publish\Core\Repository\ContentService | PHPUnit_Framework_MockObject_MockObject

getRelationProcessorMock() protected méthode

protected getRelationProcessorMock ( ) : PHPUnit_Framework_MockObject_MockObject | RelationProcessor
Résultat PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Repository\Helper\RelationProcessor

internalLoadContentProvider() public méthode

mapStructFieldsForCreate() protected méthode

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[]
Résultat array

mapStructFieldsForUpdate() protected méthode

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[]
Résultat array

mockGetDefaultObjectStates() protected méthode

mockPublishUrlAliasesForContent() protected méthode

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

mockPublishVersion() protected méthode

protected mockPublishVersion ( integer | null $publicationDate = null ) : eZ\Publish\API\Repository\Values\Content\Content
$publicationDate integer | null
Résultat eZ\Publish\API\Repository\Values\Content\Content

mockSetDefaultObjectStates() protected méthode

providerForTestCreateContentNonRedundantFieldSet1() public méthode

providerForTestCreateContentNonRedundantFieldSet2() public méthode

providerForTestCreateContentNonRedundantFieldSetComplex() public méthode

providerForTestCreateContentThrowsContentFieldValidationException() public méthode

providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition() public méthode

providerForTestCreateContentThrowsContentValidationExceptionRequiredField() public méthode

providerForTestCreateContentThrowsContentValidationExceptionTranslation() public méthode

providerForTestCreateContentWithInvalidLanguage() public méthode

providerForTestUpdateContentNonRedundantFieldSet1() public méthode

providerForTestUpdateContentNonRedundantFieldSet2() public méthode

providerForTestUpdateContentNonRedundantFieldSet3() public méthode

providerForTestUpdateContentNonRedundantFieldSet4() public méthode

providerForTestUpdateContentNonRedundantFieldSetComplex() public méthode

providerForTestUpdateContentRequiredField() public méthode

providerForTestUpdateContentThrowsBadStateException() public méthode

providerForTestUpdateContentThrowsContentFieldValidationException() public méthode

providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition() public méthode

providerForTestUpdateContentThrowsContentValidationExceptionTranslation() public méthode

providerForTestUpdateContentWithInvalidLanguage() public méthode

stubValues() protected méthode

protected stubValues ( array $fieldValues )
$fieldValues array

testConstructor() public méthode

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

testCopyContent() public méthode

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

testCopyContentThrowsUnauthorizedException() public méthode

Test for the copyContent() method.

testCopyContentWithRollback() public méthode

Test for the copyContent() method.

testCopyContentWithVersionInfo() public méthode

Test for the copyContent() method.

testCreateContentNonRedundantFieldSet1() public méthode

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

testCreateContentNonRedundantFieldSet2() public méthode

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

testCreateContentNonRedundantFieldSetComplex() public méthode

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

testCreateContentObjectStates() public méthode

Test for the createContent() method.

testCreateContentRequiredField() public méthode

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

testCreateContentThrowsContentFieldValidationException() public méthode

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

testCreateContentThrowsContentValidationExceptionFieldDefinition() public méthode

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

testCreateContentThrowsContentValidationExceptionTranslation() public méthode

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

testCreateContentThrowsInvalidArgumentExceptionContentTypeNotSet() public méthode

Test for the createContent() method.

testCreateContentThrowsInvalidArgumentExceptionDuplicateRemoteId() public méthode

Test for the createContent() method.

testCreateContentThrowsInvalidArgumentExceptionMainLanguageCodeNotSet() public méthode

Test for the createContent() method.

testCreateContentThrowsUnauthorizedException() public méthode

Test for the createContent() method.

testCreateContentWithInvalidLanguage() public méthode

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

testCreateContentWithLocations() public méthode

Test for the createContent() method.

testCreateContentWithLocationsDuplicateUnderParent() public méthode

Test for the createContent() method.

testCreateContentWithRollback() public méthode

Test for the createContent() method.

testDeleteContent() public méthode

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

testDeleteContentThrowsUnauthorizedException() public méthode

Test for the deleteContent() method.

testDeleteContentWithRollback() public méthode

Test for the deleteContent() method.

testDeleteVersionThrowsBadStateExceptionLastVersion() public méthode

Test for the deleteVersion() method.

testInternalLoadContent() public méthode

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

testInternalLoadContentNotFound() public méthode

testLoadContent() public méthode

public testLoadContent ( )

testLoadContentByContentInfo() public méthode

Test for the loadContentByContentInfo() method.

testLoadContentByVersionInfo() public méthode

Test for the loadContentByVersionInfo() method.

testLoadContentNonPublished() public méthode

testLoadContentNotPublishedStatusUnauthorized() public méthode

testLoadContentUnauthorized() public méthode

testLoadVersionInfo() public méthode

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

testLoadVersionInfoById() public méthode

Test for the loadVersionInfo() method.

testLoadVersionInfoByIdNonPublishedVersion() public méthode

Test for the loadVersionInfo() method.

testLoadVersionInfoByIdPublishedVersion() public méthode

Test for the loadVersionInfo() method.

testLoadVersionInfoByIdThrowsNotFoundException() public méthode

Test for the loadVersionInfo() method.

testLoadVersionInfoByIdThrowsUnauthorizedExceptionNonPublishedVersion() public méthode

Test for the loadVersionInfo() method.

testUpdateContentNonRedundantFieldSet1() public méthode

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

testUpdateContentNonRedundantFieldSet2() public méthode

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

testUpdateContentNonRedundantFieldSet3() public méthode

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

testUpdateContentNonRedundantFieldSet4() public méthode

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

testUpdateContentNonRedundantFieldSetComplex() public méthode

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

testUpdateContentRequiredField() public méthode

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

testUpdateContentThrowsBadStateException() public méthode

Test for the updateContent() method.

testUpdateContentThrowsContentFieldValidationException() public méthode

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

testUpdateContentThrowsContentValidationExceptionFieldDefinition() public méthode

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

testUpdateContentThrowsContentValidationExceptionTranslation() public méthode

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

testUpdateContentThrowsUnauthorizedException() public méthode

Test for the updateContent() method.

testUpdateContentTransactionRollback() public méthode

Test for the updateContent() method.

testUpdateContentWithInvalidLanguage() public méthode

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

Property Details

$contentTypeServiceMock protected_oe property

protected $contentTypeServiceMock

$domainMapperMock protected_oe property

protected $domainMapperMock

$locationServiceMock protected_oe property

protected $locationServiceMock

$nameSchemaServiceMock protected_oe property

protected $nameSchemaServiceMock

$partlyMockedContentService protected_oe property

protected ContentService,eZ\Publish\Core\Repository $partlyMockedContentService
Résultat eZ\Publish\Core\Repository\ContentService

$relationProcessorMock protected_oe property

protected $relationProcessorMock