PHP Class eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\ContentTypeHandlerTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$gatewayMock eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway Gateway mock.
$mapperMock eZ\Publish\Core\Persistence\Legacy\Content\Type\Mapper Mapper mock.
$updateHandlerMock eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler Update\Handler mock.

Public Methods

Method Description
getUpdateHandlerMock ( ) : Handler Returns a Update\Handler mock.
testAddFieldDefinition ( )
testCopy ( )
testCreate ( )
testCreateGroup ( )
testCreateVersion ( )
testCtor ( )
testDeleteGroupFailure ( )
testDeleteGroupSuccess ( )
testDeleteSuccess ( )
testDeleteThrowsBadStateException ( )
testGetContentCount ( )
testGetFieldDefinition ( )
testLink ( )
testLoad ( )
testLoadAllGroups ( )
testLoadByIdentifier ( )
testLoadByRemoteId ( )
testLoadContentTypes ( )
testLoadDefaultVersion ( )
testLoadGroup ( )
testLoadGroupByIdentifier ( )
testLoadNotFound ( )
testPublish ( )
testPublishNoOldType ( )
testRemoveFieldDefinition ( )
testUnlinkFailure ( )
testUnlinkSuccess ( )
testUpdate ( )
testUpdateFieldDefinition ( )
testUpdateGroup ( )

Protected Methods

Method Description
getContentTypeCreateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type\CreateStruct Returns a CreateStruct fixture.
getGatewayMock ( ) : Gateway Returns a gateway mock.
getHandler ( ) : Handler Returns a handler to test, based on mock objects.
getMapperMock ( array $methods = [] ) : Mapper Returns a mapper mock.
getPartlyMockedHandler ( array $methods ) : Handler Returns a handler to test with $methods mocked.

Method Details

getContentTypeCreateStructFixture() protected method

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

getGatewayMock() protected method

Returns a gateway mock.
protected getGatewayMock ( ) : Gateway
return eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway

getHandler() protected method

Returns a handler to test, based on mock objects.
protected getHandler ( ) : Handler
return eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler

getMapperMock() protected method

Returns a mapper mock.
protected getMapperMock ( array $methods = [] ) : Mapper
$methods array
return eZ\Publish\Core\Persistence\Legacy\Content\Type\Mapper

getPartlyMockedHandler() protected method

Returns a handler to test with $methods mocked.
protected getPartlyMockedHandler ( array $methods ) : Handler
$methods array
return eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler

getUpdateHandlerMock() public method

Returns a Update\Handler mock.
public getUpdateHandlerMock ( ) : Handler
return eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler

testAddFieldDefinition() public method

testCopy() public method

public testCopy ( )

testCreate() public method

public testCreate ( )

testCreateGroup() public method

public testCreateGroup ( )

testCreateVersion() public method

public testCreateVersion ( )

testCtor() public method

public testCtor ( )

testDeleteGroupFailure() public method

testDeleteGroupSuccess() public method

testDeleteSuccess() public method

public testDeleteSuccess ( )

testDeleteThrowsBadStateException() public method

testGetContentCount() public method

public testGetContentCount ( )

testGetFieldDefinition() public method

testLoad() public method

public testLoad ( )

testLoadAllGroups() public method

public testLoadAllGroups ( )

testLoadByIdentifier() public method

testLoadByRemoteId() public method

public testLoadByRemoteId ( )

testLoadContentTypes() public method

testLoadDefaultVersion() public method

testLoadGroup() public method

public testLoadGroup ( )

testLoadGroupByIdentifier() public method

testLoadNotFound() public method

public testLoadNotFound ( )

testPublish() public method

public testPublish ( )

testPublishNoOldType() public method

testRemoveFieldDefinition() public method

testUnlinkFailure() public method

public testUnlinkFailure ( )

testUnlinkSuccess() public method

public testUnlinkSuccess ( )

testUpdate() public method

public testUpdate ( )

testUpdateFieldDefinition() public method

testUpdateGroup() public method

public testUpdateGroup ( )

Property Details

$gatewayMock protected property

Gateway mock.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Type $gatewayMock
return eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway

$mapperMock protected property

Mapper mock.
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content\Type $mapperMock
return eZ\Publish\Core\Persistence\Legacy\Content\Type\Mapper

$updateHandlerMock protected property

Update\Handler mock.
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\Type\Update $updateHandlerMock
return eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler