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

Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$gateway eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway\DoctrineDatabase The DoctrineDatabase gateway to test.

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

getGateway() protected méthode

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

getGroupFixture() protected méthode

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

getGroupUpdateStructFixture() protected méthode

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

getStorageFieldDefinitionFixture() protected méthode

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

getTypeCreationContentClassNameExpectations() public static méthode

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

getTypeCreationExpectations() public static méthode

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

getTypeFixture() protected méthode

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

getTypeUpdateExpectations() public static méthode

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

getTypeUpdateFixture() protected méthode

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

setUp() public méthode

public setUp ( )

testCountGroupsForType() public méthode

testCountInstancesOfTypeExist() public méthode

testCountInstancesOfTypeNotExist() public méthode

testCountTypesInGroup() public méthode

testCtor() public méthode

public testCtor ( )

testDeleteFieldDefinition() public méthode

testDeleteFieldDefinitionsForTypeExisting() public méthode

testDeleteFieldDefinitionsForTypeNotExisting() public méthode

testDeleteGroup() public méthode

public testDeleteGroup ( )

testDeleteGroupAssignment() public méthode

testDeleteGroupAssignmentsForTypeExisting() public méthode

testDeleteGroupAssignmentsForTypeNotExisting() public méthode

testDeleteTypeExisting() public méthode

testDeleteTypeNotExisting() public méthode

testInsertFieldDefinition() public méthode

testInsertGroup() public méthode

public testInsertGroup ( )

testInsertGroupAssignment() public méthode

testInsertType() public méthode

public testInsertType ( $column, $expectation )

testInsertTypeContentClassName() public méthode

public testInsertTypeContentClassName ( $column, $expectation )

testLoadAllGroupsData() public méthode

testLoadGroupData() public méthode

public testLoadGroupData ( )

testLoadGroupDataByIdentifier() public méthode

testLoadTypeData() public méthode

public testLoadTypeData ( )

testLoadTypeDataByIdentifier() public méthode

testLoadTypeDataByRemoteId() public méthode

testLoadTypesDataForGroup() public méthode

testPublishTypeAndFields() public méthode

testUpdateFieldDefinition() public méthode

testUpdateGroup() public méthode

public testUpdateGroup ( )

testUpdateType() public méthode

public testUpdateType ( $fieldName, $expectedValue )

testUpdateTypeName() public méthode

public testUpdateTypeName ( )

Property Details

$gateway protected_oe property

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