PHP Class eZ\Publish\Core\Persistence\Legacy\Tests\Content\ObjectState\ObjectStateHandlerTest

Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$gatewayMock eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway Object state gateway mock.
$mapperMock eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Mapper Object state mapper mock.
$objectStateHandler eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Handler Object state handler.

Méthodes publiques

Méthode Description
testCreate ( )
testCreateGroup ( )
testDelete ( )
testDeleteGroup ( )
testDeleteThrowsNotFoundException ( )
testGetContentCount ( )
testGetContentState ( )
testLoad ( )
testLoadAllGroups ( )
testLoadByIdentifier ( )
testLoadByIdentifierThrowsNotFoundException ( )
testLoadGroup ( )
testLoadGroupByIdentifier ( )
testLoadGroupByIdentifierThrowsNotFoundException ( )
testLoadGroupThrowsNotFoundException ( )
testLoadObjectStates ( )
testLoadThrowsNotFoundException ( )
testSetContentState ( )
testSetPriority ( )
testUpdate ( )
testUpdateGroup ( )

Méthodes protégées

Méthode Description
getGatewayMock ( ) : Gateway Returns a mock for the object state gateway.
getInputStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct Returns the InputStruct.
getMapperMock ( ) : Mapper Returns an object state mapper mock.
getObjectStateFixture ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState Returns an object state.
getObjectStateGroupFixture ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group Returns an object state group.
getObjectStateHandler ( ) : Handler Returns the object state handler to test.

Method Details

getGatewayMock() protected méthode

Returns a mock for the object state gateway.
protected getGatewayMock ( ) : Gateway
Résultat eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway

getInputStructFixture() protected méthode

Returns the InputStruct.
protected getInputStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct
Résultat eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct

getMapperMock() protected méthode

Returns an object state mapper mock.
protected getMapperMock ( ) : Mapper
Résultat eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Mapper

getObjectStateFixture() protected méthode

Returns an object state.
protected getObjectStateFixture ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState
Résultat eZ\Publish\SPI\Persistence\Content\ObjectState

getObjectStateGroupFixture() protected méthode

Returns an object state group.
protected getObjectStateGroupFixture ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group
Résultat eZ\Publish\SPI\Persistence\Content\ObjectState\Group

getObjectStateHandler() protected méthode

Returns the object state handler to test.
protected getObjectStateHandler ( ) : Handler
Résultat eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Handler

testCreate() public méthode

public testCreate ( )

testCreateGroup() public méthode

public testCreateGroup ( )

testDelete() public méthode

public testDelete ( )

testDeleteGroup() public méthode

public testDeleteGroup ( )

testDeleteThrowsNotFoundException() public méthode

testGetContentCount() public méthode

public testGetContentCount ( )

testGetContentState() public méthode

public testGetContentState ( )

testLoad() public méthode

public testLoad ( )

testLoadAllGroups() public méthode

public testLoadAllGroups ( )

testLoadByIdentifier() public méthode

testLoadByIdentifierThrowsNotFoundException() public méthode

testLoadGroup() public méthode

public testLoadGroup ( )

testLoadGroupByIdentifier() public méthode

testLoadGroupByIdentifierThrowsNotFoundException() public méthode

testLoadGroupThrowsNotFoundException() public méthode

testLoadObjectStates() public méthode

testLoadThrowsNotFoundException() public méthode

testSetContentState() public méthode

public testSetContentState ( )

testSetPriority() public méthode

public testSetPriority ( )

testUpdate() public méthode

public testUpdate ( )

testUpdateGroup() public méthode

public testUpdateGroup ( )

Property Details

$gatewayMock protected_oe property

Object state gateway mock.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\ObjectState $gatewayMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway

$mapperMock protected_oe property

Object state mapper mock.
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content\ObjectState $mapperMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Mapper

$objectStateHandler protected_oe property

Object state handler.
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\ObjectState $objectStateHandler
Résultat eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Handler