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

Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$databaseGateway eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\DoctrineDatabase Database gateway to test.
$languageMaskGenerator eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator Language mask generator.

Public Methods

Method Description
setUp ( ) Inserts DB fixture.
testCtor ( )
testDeleteObjectState ( )
testDeleteObjectStateGroup ( )
testDeleteObjectStateLinks ( )
testGetContentCount ( )
testInsertObjectState ( )
testInsertObjectStateGroup ( )
testInsertObjectStateInEmptyGroup ( )
testLoadObjectStateData ( )
testLoadObjectStateDataByIdentifier ( )
testLoadObjectStateDataForContent ( )
testLoadObjectStateGroupData ( )
testLoadObjectStateGroupDataByIdentifier ( )
testLoadObjectStateGroupListData ( )
testLoadObjectStateListData ( )
testSetContentState ( )
testUpdateObjectState ( )
testUpdateObjectStateGroup ( )
testUpdateObjectStateLinks ( )
testUpdateObjectStatePriority ( )

Protected Methods

Method Description
getDatabaseGateway ( ) : DoctrineDatabase Returns a ready to test DoctrineDatabase gateway.
getObjectStateFixture ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState Returns an object state fixture.
getObjectStateGroupFixture ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group Returns an object state group fixture.

Method Details

getDatabaseGateway() protected method

Returns a ready to test DoctrineDatabase gateway.
protected getDatabaseGateway ( ) : DoctrineDatabase
return eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\DoctrineDatabase

getObjectStateFixture() protected method

Returns an object state fixture.
protected getObjectStateFixture ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState
return eZ\Publish\SPI\Persistence\Content\ObjectState

getObjectStateGroupFixture() protected method

Returns an object state group fixture.
protected getObjectStateGroupFixture ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group
return eZ\Publish\SPI\Persistence\Content\ObjectState\Group

setUp() public method

Inserts DB fixture.
public setUp ( )

testCtor() public method

public testCtor ( )

testDeleteObjectState() public method

testDeleteObjectStateGroup() public method

testGetContentCount() public method

public testGetContentCount ( )

testInsertObjectState() public method

testInsertObjectStateGroup() public method

testInsertObjectStateInEmptyGroup() public method

testLoadObjectStateData() public method

testLoadObjectStateDataByIdentifier() public method

testLoadObjectStateDataForContent() public method

testLoadObjectStateGroupData() public method

testLoadObjectStateGroupDataByIdentifier() public method

testLoadObjectStateGroupListData() public method

testLoadObjectStateListData() public method

testSetContentState() public method

public testSetContentState ( )

testUpdateObjectState() public method

testUpdateObjectStateGroup() public method

testUpdateObjectStatePriority() public method

Property Details

$databaseGateway protected property

Database gateway to test.
protected DoctrineDatabase,eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway $databaseGateway
return eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\DoctrineDatabase

$languageMaskGenerator protected property

Language mask generator.
protected MaskGenerator,eZ\Publish\Core\Persistence\Legacy\Content\Language $languageMaskGenerator
return eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator