PHP Class eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\UpdateHandler\DoctrineDatabaseTest

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

Protected Properties

Property Type Description
$contentUpdaterMock eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater Content Updater mock.
$gatewayMock eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway Gateway mock.

Public Methods

Method Description
testDeleteOldType ( )
testPublishNewType ( )
testUpdateContentObjects ( )

Protected Methods

Method Description
getContentUpdaterMock ( ) : ContentUpdater Returns a Content Updater mock.
getGatewayMock ( ) : Gateway Returns a gateway mock.
getTypeFixtures ( ) : eZ\Publish\SPI\Persistence\Content\Type[] Returns an array with 'from' and 'to' types.
getUpdateHandler ( ) : DoctrineDatabase Returns the Update Handler to test.

Method Details

getContentUpdaterMock() protected method

Returns a Content Updater mock.
protected getContentUpdaterMock ( ) : ContentUpdater
return eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater

getGatewayMock() protected method

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

getTypeFixtures() protected method

Returns an array with 'from' and 'to' types.
protected getTypeFixtures ( ) : eZ\Publish\SPI\Persistence\Content\Type[]
return eZ\Publish\SPI\Persistence\Content\Type[]

getUpdateHandler() protected method

Returns the Update Handler to test.
protected getUpdateHandler ( ) : DoctrineDatabase
return eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler\DoctrineDatabase

testDeleteOldType() public method

public testDeleteOldType ( )

testPublishNewType() public method

public testPublishNewType ( )

testUpdateContentObjects() public method

Property Details

$contentUpdaterMock protected property

Content Updater mock.
protected ContentUpdater,eZ\Publish\Core\Persistence\Legacy\Content\Type $contentUpdaterMock
return eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater

$gatewayMock protected property

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