PHP Class eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\Gateway\DoctrineDatabaseTest

Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$gateway eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway\DoctrineDatabase The DoctrineDatabase gateway to test.

Public Methods

Method Description
getTypeCreationContentClassNameExpectations ( ) : string[][] Returns the data expected to be inserted in ezcontentclass_name.
getTypeCreationExpectations ( ) : string[][] Returns the expected data from creating a type.
getTypeUpdateExpectations ( ) : string[][] Returns expected data after update.
setUp ( )
testCountGroupsForType ( )
testCountInstancesOfTypeExist ( )
testCountInstancesOfTypeNotExist ( )
testCountTypesInGroup ( )
testCtor ( )
testDeleteFieldDefinition ( )
testDeleteFieldDefinitionsForTypeExisting ( )
testDeleteFieldDefinitionsForTypeNotExisting ( )
testDeleteGroup ( )
testDeleteGroupAssignment ( )
testDeleteGroupAssignmentsForTypeExisting ( )
testDeleteGroupAssignmentsForTypeNotExisting ( )
testDeleteTypeExisting ( )
testDeleteTypeNotExisting ( )
testInsertFieldDefinition ( )
testInsertGroup ( )
testInsertGroupAssignment ( )
testInsertType ( $column, $expectation )
testInsertTypeContentClassName ( $column, $expectation )
testLoadAllGroupsData ( )
testLoadGroupData ( )
testLoadGroupDataByIdentifier ( )
testLoadTypeData ( )
testLoadTypeDataByIdentifier ( )
testLoadTypeDataByRemoteId ( )
testLoadTypesDataForGroup ( )
testPublishTypeAndFields ( )
testUpdateFieldDefinition ( )
testUpdateGroup ( )
testUpdateType ( $fieldName, $expectedValue )
testUpdateTypeName ( )

Protected Methods

Method Description
getFieldDefinitionFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition Returns a FieldDefinition fixture.
getGateway ( ) : DoctrineDatabase Returns the DoctrineDatabase gateway to test.
getGroupFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type\Group Returns a Group fixture.
getGroupUpdateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type\Group\UpdateStruct Returns a Group update struct fixture.
getStorageFieldDefinitionFixture ( ) : StorageFieldDefinition Returns a StorageFieldDefinition fixture.
getTypeFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type Returns a Type fixture.
getTypeUpdateFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct Returns a eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct fixture.

Method Details

getFieldDefinitionFixture() protected method

Returns a FieldDefinition fixture.
protected getFieldDefinitionFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
return eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition

getGateway() protected method

Returns the DoctrineDatabase gateway to test.
protected getGateway ( ) : DoctrineDatabase
return eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway\DoctrineDatabase

getGroupFixture() protected method

Returns a Group fixture.
protected getGroupFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type\Group
return eZ\Publish\SPI\Persistence\Content\Type\Group

getGroupUpdateStructFixture() protected method

Returns a Group update struct fixture.
protected getGroupUpdateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type\Group\UpdateStruct
return eZ\Publish\SPI\Persistence\Content\Type\Group\UpdateStruct

getStorageFieldDefinitionFixture() protected method

Returns a StorageFieldDefinition fixture.
protected getStorageFieldDefinitionFixture ( ) : StorageFieldDefinition
return eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition

getTypeCreationContentClassNameExpectations() public static method

Returns the data expected to be inserted in ezcontentclass_name.
public static getTypeCreationContentClassNameExpectations ( ) : string[][]
return string[][]

getTypeCreationExpectations() public static method

Returns the expected data from creating a type.
public static getTypeCreationExpectations ( ) : string[][]
return string[][]

getTypeFixture() protected method

Returns a Type fixture.
protected getTypeFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type
return eZ\Publish\SPI\Persistence\Content\Type

getTypeUpdateExpectations() public static method

Data provider for {@link testUpdateType()}.
public static getTypeUpdateExpectations ( ) : string[][]
return string[][]

getTypeUpdateFixture() protected method

Returns a eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct fixture.
protected getTypeUpdateFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct
return eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct

setUp() public method

public setUp ( )

testCountGroupsForType() public method

testCountInstancesOfTypeExist() public method

testCountInstancesOfTypeNotExist() public method

testCountTypesInGroup() public method

testCtor() public method

public testCtor ( )

testDeleteFieldDefinition() public method

testDeleteFieldDefinitionsForTypeExisting() public method

testDeleteFieldDefinitionsForTypeNotExisting() public method

testDeleteGroup() public method

public testDeleteGroup ( )

testDeleteGroupAssignment() public method

testDeleteGroupAssignmentsForTypeExisting() public method

testDeleteGroupAssignmentsForTypeNotExisting() public method

testDeleteTypeExisting() public method

testDeleteTypeNotExisting() public method

testInsertFieldDefinition() public method

testInsertGroup() public method

public testInsertGroup ( )

testInsertGroupAssignment() public method

testInsertType() public method

public testInsertType ( $column, $expectation )

testInsertTypeContentClassName() public method

public testInsertTypeContentClassName ( $column, $expectation )

testLoadAllGroupsData() public method

testLoadGroupData() public method

public testLoadGroupData ( )

testLoadGroupDataByIdentifier() public method

testLoadTypeData() public method

public testLoadTypeData ( )

testLoadTypeDataByIdentifier() public method

testLoadTypeDataByRemoteId() public method

testLoadTypesDataForGroup() public method

testPublishTypeAndFields() public method

testUpdateFieldDefinition() public method

testUpdateGroup() public method

public testUpdateGroup ( )

testUpdateType() public method

public testUpdateType ( $fieldName, $expectedValue )

testUpdateTypeName() public method

public testUpdateTypeName ( )

Property Details

$gateway protected property

The DoctrineDatabase gateway to test.
protected DoctrineDatabase,eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway $gateway
return eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway\DoctrineDatabase