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

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

Protected Properties

Property Type Description
$contentTypeServiceMock
$domainMapperMock
$locationServiceMock
$nameSchemaServiceMock
$partlyMockedContentService eZ\Publish\Core\Repository\ContentService
$relationProcessorMock

Public Methods

Method 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.

Protected Methods

Method 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 method

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

assertForTestCreateContentNonRedundantFieldSet() protected method

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
return mixed

assertForTestCreateContentRequiredField() protected method

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
return mixed

assertForTestCreateContentThrowsContentFieldValidationException() protected method

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
return mixed

assertForTestUpdateContentNonRedundantFieldSet() protected method

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
return mixed

assertForTestUpdateContentRequiredField() public method

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

assertForTestUpdateContentThrowsContentFieldValidationException() public method

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

assertForUpdateContentContentValidationException() protected method

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

determineLanguageCodesForCreate() protected method

protected determineLanguageCodesForCreate ( string $mainLanguageCode, array $structFields ) : string[]
$mainLanguageCode string
$structFields array
return string[]

determineLanguageCodesForUpdate() protected method

protected determineLanguageCodesForUpdate ( string $initialLanguageCode, array $structFields, string[] $existingLanguages ) : string[]
$initialLanguageCode string
$structFields array
$existingLanguages string[]
return string[]

determineValuesForCreate() protected method

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
return array

determineValuesForUpdate() protected method

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
return array

fixturesForTestCreateContentNonRedundantFieldSetComplex() protected method

fixturesForTestUpdateContentNonRedundantFieldSetComplex() protected method

getContentTypeServiceMock() protected method

protected getContentTypeServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\ContentTypeService
return PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\ContentTypeService

getDomainMapperMock() protected method

protected getDomainMapperMock ( ) : PHPUnit_Framework_MockObject_MockObject | DomainMapper
return PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Repository\Helper\DomainMapper

getLocationServiceMock() protected method

protected getLocationServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\LocationService
return PHPUnit_Framework_MockObject_MockObject | eZ\Publish\API\Repository\LocationService

getNameSchemaServiceMock() protected method

protected getNameSchemaServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | NameSchemaService
return PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Repository\Helper\NameSchemaService

getPartlyMockedContentService() protected method

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

getRelationProcessorMock() protected method

protected getRelationProcessorMock ( ) : PHPUnit_Framework_MockObject_MockObject | RelationProcessor
return PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\Repository\Helper\RelationProcessor

internalLoadContentProvider() public method

mapStructFieldsForCreate() protected method

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[]
return array

mapStructFieldsForUpdate() protected method

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[]
return array

mockGetDefaultObjectStates() protected method

mockPublishUrlAliasesForContent() protected method

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

mockPublishVersion() protected method

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

mockSetDefaultObjectStates() protected method

providerForTestCreateContentNonRedundantFieldSet1() public method

providerForTestCreateContentNonRedundantFieldSet2() public method

providerForTestCreateContentNonRedundantFieldSetComplex() public method

providerForTestCreateContentThrowsContentFieldValidationException() public method

providerForTestCreateContentThrowsContentValidationExceptionFieldDefinition() public method

providerForTestCreateContentThrowsContentValidationExceptionRequiredField() public method

providerForTestCreateContentThrowsContentValidationExceptionTranslation() public method

providerForTestCreateContentWithInvalidLanguage() public method

providerForTestUpdateContentNonRedundantFieldSet1() public method

providerForTestUpdateContentNonRedundantFieldSet2() public method

providerForTestUpdateContentNonRedundantFieldSet3() public method

providerForTestUpdateContentNonRedundantFieldSet4() public method

providerForTestUpdateContentNonRedundantFieldSetComplex() public method

providerForTestUpdateContentRequiredField() public method

providerForTestUpdateContentThrowsBadStateException() public method

providerForTestUpdateContentThrowsContentFieldValidationException() public method

providerForTestUpdateContentThrowsContentValidationExceptionFieldDefinition() public method

providerForTestUpdateContentThrowsContentValidationExceptionTranslation() public method

providerForTestUpdateContentWithInvalidLanguage() public method

stubValues() protected method

protected stubValues ( array $fieldValues )
$fieldValues array

testConstructor() public method

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

testCopyContent() public method

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

testCopyContentThrowsUnauthorizedException() public method

Test for the copyContent() method.

testCopyContentWithRollback() public method

Test for the copyContent() method.

testCopyContentWithVersionInfo() public method

Test for the copyContent() method.

testCreateContentNonRedundantFieldSet1() public method

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

testCreateContentNonRedundantFieldSet2() public method

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

testCreateContentNonRedundantFieldSetComplex() public method

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

testCreateContentObjectStates() public method

Test for the createContent() method.

testCreateContentRequiredField() public method

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

testCreateContentThrowsContentFieldValidationException() public method

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

testCreateContentThrowsContentValidationExceptionFieldDefinition() public method

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

testCreateContentThrowsContentValidationExceptionTranslation() public method

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

testCreateContentThrowsInvalidArgumentExceptionContentTypeNotSet() public method

Test for the createContent() method.

testCreateContentThrowsInvalidArgumentExceptionDuplicateRemoteId() public method

Test for the createContent() method.

testCreateContentThrowsInvalidArgumentExceptionMainLanguageCodeNotSet() public method

Test for the createContent() method.

testCreateContentThrowsUnauthorizedException() public method

Test for the createContent() method.

testCreateContentWithInvalidLanguage() public method

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

testCreateContentWithLocations() public method

Test for the createContent() method.

testCreateContentWithLocationsDuplicateUnderParent() public method

Test for the createContent() method.

testCreateContentWithRollback() public method

Test for the createContent() method.

testDeleteContent() public method

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

testDeleteContentThrowsUnauthorizedException() public method

Test for the deleteContent() method.

testDeleteContentWithRollback() public method

Test for the deleteContent() method.

testDeleteVersionThrowsBadStateExceptionLastVersion() public method

Test for the deleteVersion() method.

testInternalLoadContent() public method

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

testInternalLoadContentNotFound() public method

testLoadContent() public method

public testLoadContent ( )

testLoadContentByContentInfo() public method

Test for the loadContentByContentInfo() method.

testLoadContentByVersionInfo() public method

Test for the loadContentByVersionInfo() method.

testLoadContentNonPublished() public method

testLoadContentNotPublishedStatusUnauthorized() public method

testLoadContentUnauthorized() public method

testLoadVersionInfo() public method

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

testLoadVersionInfoById() public method

Test for the loadVersionInfo() method.

testLoadVersionInfoByIdNonPublishedVersion() public method

Test for the loadVersionInfo() method.

testLoadVersionInfoByIdPublishedVersion() public method

Test for the loadVersionInfo() method.

testLoadVersionInfoByIdThrowsNotFoundException() public method

Test for the loadVersionInfo() method.

testLoadVersionInfoByIdThrowsUnauthorizedExceptionNonPublishedVersion() public method

Test for the loadVersionInfo() method.

testUpdateContentNonRedundantFieldSet1() public method

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

testUpdateContentNonRedundantFieldSet2() public method

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

testUpdateContentNonRedundantFieldSet3() public method

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

testUpdateContentNonRedundantFieldSet4() public method

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

testUpdateContentNonRedundantFieldSetComplex() public method

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

testUpdateContentRequiredField() public method

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

testUpdateContentThrowsBadStateException() public method

Test for the updateContent() method.

testUpdateContentThrowsContentFieldValidationException() public method

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

testUpdateContentThrowsContentValidationExceptionFieldDefinition() public method

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

testUpdateContentThrowsContentValidationExceptionTranslation() public method

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

testUpdateContentThrowsUnauthorizedException() public method

Test for the updateContent() method.

testUpdateContentTransactionRollback() public method

Test for the updateContent() method.

testUpdateContentWithInvalidLanguage() public method

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

Property Details

$contentTypeServiceMock protected property

protected $contentTypeServiceMock

$domainMapperMock protected property

protected $domainMapperMock

$locationServiceMock protected property

protected $locationServiceMock

$nameSchemaServiceMock protected property

protected $nameSchemaServiceMock

$partlyMockedContentService protected property

protected ContentService,eZ\Publish\Core\Repository $partlyMockedContentService
return eZ\Publish\Core\Repository\ContentService

$relationProcessorMock protected property

protected $relationProcessorMock