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

Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

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

Public Methods

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

Protected Methods

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

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

getInputStructFixture() protected method

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

getMapperMock() protected method

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

getObjectStateFixture() protected method

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

getObjectStateGroupFixture() protected method

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

getObjectStateHandler() protected method

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

testCreate() public method

public testCreate ( )

testCreateGroup() public method

public testCreateGroup ( )

testDelete() public method

public testDelete ( )

testDeleteGroup() public method

public testDeleteGroup ( )

testDeleteThrowsNotFoundException() public method

testGetContentCount() public method

public testGetContentCount ( )

testGetContentState() public method

public testGetContentState ( )

testLoad() public method

public testLoad ( )

testLoadAllGroups() public method

public testLoadAllGroups ( )

testLoadByIdentifier() public method

testLoadByIdentifierThrowsNotFoundException() public method

testLoadGroup() public method

public testLoadGroup ( )

testLoadGroupByIdentifier() public method

testLoadGroupByIdentifierThrowsNotFoundException() public method

testLoadGroupThrowsNotFoundException() public method

testLoadObjectStates() public method

testLoadThrowsNotFoundException() public method

testSetContentState() public method

public testSetContentState ( )

testSetPriority() public method

public testSetPriority ( )

testUpdate() public method

public testUpdate ( )

testUpdateGroup() public method

public testUpdateGroup ( )

Property Details

$gatewayMock protected property

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

$mapperMock protected property

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

$objectStateHandler protected property

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