PHP Class eZ\Publish\Core\Persistence\Legacy\Tests\Content\UrlAlias\Gateway\DoctrineDatabaseTest

Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$gateway eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway Database gateway to test.

Public Methods

Method Description
providerForTestCleanupAfterPublishHistorize ( ) : array
providerForTestCleanupAfterPublishRemovesLanguage ( ) : array
providerForTestLoadPathData ( ) : array
providerForTestLoadPathDataMultipleLanguages ( ) : array
testCleanupAfterPublishHistorize ( $action, $languageId, $parentId, $textMD5 ) Test for the cleanupAfterPublish() method.
testCleanupAfterPublishRemovesLanguage ( $action, $languageId, $parentId, $textMD5 ) Test for the cleanupAfterPublish() method.
testConstructor ( )
testGetNextId ( ) Test for the getNextId() method.
testLoadPathData ( $id, $pathData ) Test for the loadPathData() method.
testLoadPathDataMultipleLanguages ( $id, $pathData ) Test for the loadPathData() method.
testLoadUrlaliasData ( ) Test for the loadUrlAliasData() method.
testLoadUrlaliasDataMultipleLanguages ( ) Test for the loadUrlAliasData() method.
testLoadUrlaliasDataNonExistent ( ) Test for the loadUrlAliasData() method.
testRemove ( ) Test for the remove() method.
testRemoveCustomAlias ( ) Test for the removeCustomAlias() method.
testRemoveCustomAliasFails ( ) Test for the removeByAction() method.
testRemoveWithId ( ) Test for the remove() method.
testReparent ( ) Test for the reparent() method.

Protected Methods

Method Description
getGateway ( ) : DoctrineDatabase Returns the DoctrineDatabase gateway to test.

Method Details

getGateway() protected method

Returns the DoctrineDatabase gateway to test.
protected getGateway ( ) : DoctrineDatabase
return eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway\DoctrineDatabase

providerForTestCleanupAfterPublishHistorize() public method

providerForTestCleanupAfterPublishRemovesLanguage() public method

providerForTestLoadPathData() public method

providerForTestLoadPathDataMultipleLanguages() public method

testCleanupAfterPublishHistorize() public method

Test for the cleanupAfterPublish() method.
public testCleanupAfterPublishHistorize ( $action, $languageId, $parentId, $textMD5 )

testCleanupAfterPublishRemovesLanguage() public method

Test for the cleanupAfterPublish() method.
public testCleanupAfterPublishRemovesLanguage ( $action, $languageId, $parentId, $textMD5 )

testConstructor() public method

public testConstructor ( )

testGetNextId() public method

Test for the getNextId() method.
public testGetNextId ( )

testLoadPathData() public method

Test for the loadPathData() method.
public testLoadPathData ( $id, $pathData )

testLoadPathDataMultipleLanguages() public method

Test for the loadPathData() method.
public testLoadPathDataMultipleLanguages ( $id, $pathData )

testLoadUrlaliasData() public method

Test for the loadUrlAliasData() method.

testLoadUrlaliasDataMultipleLanguages() public method

Test with fixture containing language mask with multiple languages.

testLoadUrlaliasDataNonExistent() public method

Test for the loadUrlAliasData() method.

testRemove() public method

Test for the remove() method.
public testRemove ( )

testRemoveCustomAlias() public method

Test for the removeCustomAlias() method.

testRemoveCustomAliasFails() public method

Test for the removeByAction() method.

testRemoveWithId() public method

Test for the remove() method.
public testRemoveWithId ( )

testReparent() public method

Test for the reparent() method.
public testReparent ( )

Property Details

$gateway protected property

Database gateway to test.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias $gateway
return eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway