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

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство 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.

Méthodes publiques

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

Méthodes protégées

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

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

getGatewayMock() protected méthode

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

getHandler() protected méthode

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

getMapperMock() protected méthode

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

getPartlyMockedHandler() protected méthode

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

getUpdateHandlerMock() public méthode

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

testAddFieldDefinition() public méthode

testCopy() public méthode

public testCopy ( )

testCreate() public méthode

public testCreate ( )

testCreateGroup() public méthode

public testCreateGroup ( )

testCreateVersion() public méthode

public testCreateVersion ( )

testCtor() public méthode

public testCtor ( )

testDeleteGroupFailure() public méthode

testDeleteGroupSuccess() public méthode

testDeleteSuccess() public méthode

public testDeleteSuccess ( )

testDeleteThrowsBadStateException() public méthode

testGetContentCount() public méthode

public testGetContentCount ( )

testGetFieldDefinition() public méthode

testLoad() public méthode

public testLoad ( )

testLoadAllGroups() public méthode

public testLoadAllGroups ( )

testLoadByIdentifier() public méthode

testLoadByRemoteId() public méthode

public testLoadByRemoteId ( )

testLoadContentTypes() public méthode

testLoadDefaultVersion() public méthode

testLoadGroup() public méthode

public testLoadGroup ( )

testLoadGroupByIdentifier() public méthode

testLoadNotFound() public méthode

public testLoadNotFound ( )

testPublish() public méthode

public testPublish ( )

testPublishNoOldType() public méthode

testRemoveFieldDefinition() public méthode

testUnlinkFailure() public méthode

public testUnlinkFailure ( )

testUnlinkSuccess() public méthode

public testUnlinkSuccess ( )

testUpdate() public méthode

public testUpdate ( )

testUpdateFieldDefinition() public méthode

testUpdateGroup() public méthode

public testUpdateGroup ( )

Property Details

$gatewayMock protected_oe property

Gateway mock.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Type $gatewayMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway

$mapperMock protected_oe property

Mapper mock.
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content\Type $mapperMock
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Type\Mapper

$updateHandlerMock protected_oe property

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