PHP Класс eZ\Publish\Core\Persistence\Legacy\Tests\Content\UrlAliasHandlerTest

Наследование: extends eZ\Publish\Core\Persistence\Legacy\Tests\TestCase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$dbHandler eZ\Publish\Core\Persistence\Doctrine\ConnectionHandler
$languageHandler eZ\Publish\Core\Persistence\Legacy\Content\Language\Handler
$languageMaskGenerator eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator
$locationGateway eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway

Открытые методы

Метод Описание
getProcessor ( ) : TransformationProcessor
providerForTestLookupCustomLocationUrlAlias ( )
providerForTestLookupLocationMultipleLanguages ( )
providerForTestLookupLocationUrlAlias ( )
providerForTestLookupResourceUrlAlias ( )
providerForTestLookupVirtualUrlAlias ( )
providerForTestPublishUrlAliasForLocationComplex ( ) : array
providerForTestPublishUrlAliasForLocationSkipsReservedWord ( )
testCreateCustomUrlAlias ( ) Test for the createUrlAlias() method.
testCreateCustomUrlAliasBehaviour ( ) Test for the createCustomUrlAlias() method.
testCreateCustomUrlAliasReusesHistory ( ) Test for the createUrlAlias() method.
testCreateCustomUrlAliasReusesHistoryOfDifferentLanguage ( ) Test for the createUrlAlias() method.
testCreateCustomUrlAliasReusesLocationElement ( ) Test for the createUrlAlias() method.
testCreateCustomUrlAliasReusesNopElement ( ) Test for the createUrlAlias() method.
testCreateCustomUrlAliasWithNonameParts ( ) Test for the createUrlAlias() method.
testCreateCustomUrlAliasWithNopElement ( ) Test for the createUrlAlias() method.
testCreateGlobalUrlAliasBehaviour ( ) Test for the createGlobalUrlAlias() method.
testCreateUrlAliasWithNopElementCreatesValidNopElement ( Handler $handler ) Test for the createUrlAlias() method.
testCreatedCustomUrlAliasIsLoadable ( ) Test for the createUrlAlias() method.
testListGlobalURLAliases ( ) Test for the listGlobalURLAliases() method.
testListGlobalURLAliasesWithLanguageCode ( ) Test for the listGlobalURLAliases() method.
testListGlobalURLAliasesWithOffset ( ) Test for the listGlobalURLAliases() method.
testListGlobalURLAliasesWithOffsetAndLimit ( ) Test for the listGlobalURLAliases() method.
testListURLAliasesForLocation ( ) Test for the listURLAliasesForLocation() method.
testLoadAutogeneratedUrlAlias ( $url, array $pathData, array $languageCodes, $alwaysAvailable, $locationId, $id ) Test for the loadUrlAlias() method.
testLoadHistoryUrlAlias ( ) Test for the loadUrlAlias() method.
testLoadResourceUrlAlias ( $url, $pathData, array $languageCodes, $forward, $alwaysAvailable, $destination, $id ) Test for the loadUrlAlias() method.
testLoadUrlAliasThrowsNotFoundException ( ) Test for the loadUrlAlias() method.
testLoadVirtualUrlAlias ( $url, $id ) Test for the loadUrlAlias() method.
testLocationCopiedCopiedLocationAliasIsValid ( ) Test for the locationCopied() method.
testLocationCopiedCopiedSubtreeIsValid ( ) Test for the locationCopied() method.
testLocationCopiedHistoryNotCopied ( ) Test for the locationCopied() method.
testLocationCopiedSubtree ( ) Test for the locationCopied() method.
testLocationCopiedSubtreeHistoryNotCopied ( ) Test for the locationCopied() method.
testLocationDeleted ( ) Test for the locationDeleted() method.
testLocationMovedHistorize ( ) Test for the locationMoved() method.
testLocationMovedHistory ( ) Test for the locationMoved() method.
testLocationMovedHistorySubtree ( ) Test for the locationMoved() method.
testLocationMovedReparent ( ) Test for the locationMoved() method.
testLocationMovedReparentHistory ( ) Test for the locationMoved() method.
testLocationMovedReparentSubtree ( ) Test for the locationMoved() method.
testLocationMovedReparentSubtreeHistory ( ) Test for the locationMoved() method.
testLocationSwappedMultipleLanguagesDifferentLanguages ( ) Test for the locationSwapped() method.
testLocationSwappedMultipleLanguagesDifferentLanguagesSimple ( ) Test for the locationSwapped() method.
testLocationSwappedMultipleLanguagesSimple ( ) Test for the locationSwapped() method.
testLocationSwappedMultipleLanguagesUpdatesLocationPathIdentificationString ( ) Test for the locationSwapped() method.
testLocationSwappedMultipleLanguagesWithCompositeHistory ( ) Test for the locationSwapped() method.
testLocationSwappedSiblingsSimple ( ) Test for the locationSwapped() method.
testLocationSwappedSiblingsSimpleReverse ( ) Test for the locationSwapped() method.
testLocationSwappedSiblingsSimpleWithHistory ( ) Test for the locationSwapped() method.
testLocationSwappedSiblingsSimpleWithHistoryReverse ( ) Test for the locationSwapped() method.
testLocationSwappedSimple ( ) Test for the locationSwapped() method.
testLocationSwappedSimpleWithConflict ( ) Test for the locationSwapped() method.
testLocationSwappedSimpleWithHistory ( ) Test for the locationSwapped() method.
testLocationSwappedUpdatesLocationPathIdentificationString ( ) Test for the locationSwapped() method.
testLocationSwappedWithReusingExternalHistory ( ) Test for the locationSwapped() method.
testLocationSwappedWithReusingNopEntry ( ) Test for the locationSwapped() method.
testLocationSwappedWithReusingNopEntryCustomAliasIsDestroyed ( ) Test for the locationSwapped() method.
testLookup ( ) Test for the lookup() method.
testLookupCustomLocationUrlAlias ( $url, array $pathData, array $languageCodes, $forward, $alwaysAvailable, $destination, $id ) Test for the lookup() method.
testLookupCustomLocationUrlAliasCaseCorrection ( $url, array $pathData, array $languageCodes, $forward, $alwaysAvailable, $destination, $id ) Test for the lookup() method.
testLookupLocationCaseCorrection ( $url, array $pathData, array $languageCodes, $alwaysAvailable, $locationId, $id ) Testing that looking up case incorrect URL results in redirection to case correct path.
testLookupLocationHistoryUrlAlias ( ) Test for the lookup() method.
testLookupLocationMultipleLanguages ( $url, array $pathData, array $languageCodes, $alwaysAvailable, $locationId, $id ) Test for the lookup() method.
testLookupLocationUrlAlias ( $url, array $pathData, array $languageCodes, $alwaysAvailable, $locationId, $id ) Test for the lookup() method.
testLookupResourceUrlAlias ( $url, $pathData, array $languageCodes, $forward, $alwaysAvailable, $destination, $id ) Test for the lookup() method.
testLookupResourceUrlAliasCaseInsensitive ( $url, $pathData, array $languageCodes, $forward, $alwaysAvailable, $destination, $id ) Test for the lookup() method.
testLookupThrowsNotFoundException ( ) Test for the lookup() method.
testLookupUppercaseIri ( ) Test for the lookup() method with uppercase utf8 characters.
testLookupVirtualUrlAlias ( $url, $id ) Test for the lookup() method.
testPublishUrlAliasCreatesUniqueAlias ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocation ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationComplex ( $url, $pathData, array $languageCodes, $alwaysAvailable, $locationId, $id ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationDowngradesOldEntryRemovesLanguage ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationDowngradesOldEntryToHistory ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationRepublish ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationReusesCustomAlias ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationReusesHistory ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationReusesHistoryOfDifferentLanguage ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationReusingNopElement ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationReusingNopElementChangesCustomPath ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationReusingNopElementChangesCustomPathAndCreatesHistory ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationSameAliasForMultipleLanguages ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationSkipsReservedWord ( $text, $alias ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasForLocationUpdatesLocationPathIdentificationString ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasReuseAutogeneratedCleanup ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasReuseHistoryCleanup ( ) Test for the publishUrlAliasForLocation() method.
testPublishUrlAliasReuseNopCleanupCustomAliasIsDestroyed ( ) Test for the publishUrlAliasForLocation() method.

Защищенные методы

Метод Описание
assertVirtualUrlAliasValid ( eZ\Publish\SPI\Persistence\Content\UrlAlias $urlAlias, $id )
countRows ( ) : integer
dump ( )
getHandler ( ) : Handler
getHistoryAlias ( )
getLanguageHandler ( ) : Handler
getLanguageMaskGenerator ( ) : MaskGenerator
getLocationGateway ( ) : Gateway
getPartlyMockedHandler ( array $methods ) : Handler | PHPUnit_Framework_MockObject_MockObject

Описание методов

assertVirtualUrlAliasValid() защищенный Метод

protected assertVirtualUrlAliasValid ( eZ\Publish\SPI\Persistence\Content\UrlAlias $urlAlias, $id )
$urlAlias eZ\Publish\SPI\Persistence\Content\UrlAlias

countRows() защищенный Метод

protected countRows ( ) : integer
Результат integer

dump() защищенный Метод

protected dump ( )

getHandler() защищенный Метод

protected getHandler ( ) : Handler
Результат eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler

getHistoryAlias() защищенный Метод

protected getHistoryAlias ( )

getLanguageHandler() защищенный Метод

protected getLanguageHandler ( ) : Handler
Результат eZ\Publish\Core\Persistence\Legacy\Content\Language\Handler

getLanguageMaskGenerator() защищенный Метод

protected getLanguageMaskGenerator ( ) : MaskGenerator
Результат eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator

getLocationGateway() защищенный Метод

protected getLocationGateway ( ) : Gateway
Результат eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway

getPartlyMockedHandler() защищенный Метод

protected getPartlyMockedHandler ( array $methods ) : Handler | PHPUnit_Framework_MockObject_MockObject
$methods array
Результат eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler | PHPUnit_Framework_MockObject_MockObject

getProcessor() публичный Метод

public getProcessor ( ) : TransformationProcessor
Результат eZ\Publish\Core\Persistence\TransformationProcessor

providerForTestLookupCustomLocationUrlAlias() публичный Метод

providerForTestLookupLocationMultipleLanguages() публичный Метод

providerForTestLookupLocationUrlAlias() публичный Метод

providerForTestLookupResourceUrlAlias() публичный Метод

providerForTestLookupVirtualUrlAlias() публичный Метод

providerForTestPublishUrlAliasForLocationComplex() публичный Метод

providerForTestPublishUrlAliasForLocationSkipsReservedWord() публичный Метод

testCreateCustomUrlAlias() публичный Метод

Test for the createUrlAlias() method.

testCreateCustomUrlAliasBehaviour() публичный Метод

Test for the createCustomUrlAlias() method.

testCreateCustomUrlAliasReusesHistory() публичный Метод

Test for the createUrlAlias() method.

testCreateCustomUrlAliasReusesHistoryOfDifferentLanguage() публичный Метод

Test for the createUrlAlias() method.

testCreateCustomUrlAliasReusesLocationElement() публичный Метод

Test for the createUrlAlias() method.

testCreateCustomUrlAliasReusesNopElement() публичный Метод

Test for the createUrlAlias() method.

testCreateCustomUrlAliasWithNonameParts() публичный Метод

Test for the createUrlAlias() method.

testCreateCustomUrlAliasWithNopElement() публичный Метод

Test for the createUrlAlias() method.

testCreateGlobalUrlAliasBehaviour() публичный Метод

Test for the createGlobalUrlAlias() method.

testCreateUrlAliasWithNopElementCreatesValidNopElement() публичный Метод

Test for the createUrlAlias() method.
public testCreateUrlAliasWithNopElementCreatesValidNopElement ( Handler $handler )
$handler eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler

testCreatedCustomUrlAliasIsLoadable() публичный Метод

Test for the createUrlAlias() method.

testListGlobalURLAliases() публичный Метод

Test for the listGlobalURLAliases() method.

testListGlobalURLAliasesWithLanguageCode() публичный Метод

Test for the listGlobalURLAliases() method.

testListGlobalURLAliasesWithOffset() публичный Метод

Test for the listGlobalURLAliases() method.

testListGlobalURLAliasesWithOffsetAndLimit() публичный Метод

Test for the listGlobalURLAliases() method.

testListURLAliasesForLocation() публичный Метод

Test for the listURLAliasesForLocation() method.

testLoadAutogeneratedUrlAlias() публичный Метод

Test for the loadUrlAlias() method.
public testLoadAutogeneratedUrlAlias ( $url, array $pathData, array $languageCodes, $alwaysAvailable, $locationId, $id )
$pathData array
$languageCodes array

testLoadHistoryUrlAlias() публичный Метод

Test for the loadUrlAlias() method.

testLoadResourceUrlAlias() публичный Метод

Test for the loadUrlAlias() method.
public testLoadResourceUrlAlias ( $url, $pathData, array $languageCodes, $forward, $alwaysAvailable, $destination, $id )
$languageCodes array

testLoadUrlAliasThrowsNotFoundException() публичный Метод

Test for the loadUrlAlias() method.

testLoadVirtualUrlAlias() публичный Метод

Test for the loadUrlAlias() method.
public testLoadVirtualUrlAlias ( $url, $id )

testLocationCopiedCopiedLocationAliasIsValid() публичный Метод

Test for the locationCopied() method.

testLocationCopiedCopiedSubtreeIsValid() публичный Метод

Test for the locationCopied() method.

testLocationCopiedHistoryNotCopied() публичный Метод

Test for the locationCopied() method.

testLocationCopiedSubtree() публичный Метод

Test for the locationCopied() method.

testLocationCopiedSubtreeHistoryNotCopied() публичный Метод

Test for the locationCopied() method.

testLocationDeleted() публичный Метод

Test for the locationDeleted() method.
public testLocationDeleted ( )

testLocationMovedHistorize() публичный Метод

Test for the locationMoved() method.

testLocationMovedHistory() публичный Метод

Test for the locationMoved() method.

testLocationMovedHistorySubtree() публичный Метод

Test for the locationMoved() method.

testLocationMovedReparent() публичный Метод

Test for the locationMoved() method.

testLocationMovedReparentHistory() публичный Метод

Test for the locationMoved() method.

testLocationMovedReparentSubtree() публичный Метод

Test for the locationMoved() method.

testLocationMovedReparentSubtreeHistory() публичный Метод

Test for the locationMoved() method.

testLocationSwappedMultipleLanguagesDifferentLanguages() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedMultipleLanguagesDifferentLanguagesSimple() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedMultipleLanguagesSimple() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedMultipleLanguagesUpdatesLocationPathIdentificationString() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedMultipleLanguagesWithCompositeHistory() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedSiblingsSimple() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedSiblingsSimpleReverse() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedSiblingsSimpleWithHistory() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedSiblingsSimpleWithHistoryReverse() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedSimple() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedSimpleWithConflict() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedSimpleWithHistory() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedUpdatesLocationPathIdentificationString() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedWithReusingExternalHistory() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedWithReusingNopEntry() публичный Метод

Test for the locationSwapped() method.

testLocationSwappedWithReusingNopEntryCustomAliasIsDestroyed() публичный Метод

Test for the locationSwapped() method.

testLookup() публичный Метод

Simple lookup case.
public testLookup ( )

testLookupCustomLocationUrlAlias() публичный Метод

Testing that UrlAlias is found and has expected state.
public testLookupCustomLocationUrlAlias ( $url, array $pathData, array $languageCodes, $forward, $alwaysAvailable, $destination, $id )
$pathData array
$languageCodes array

testLookupCustomLocationUrlAliasCaseCorrection() публичный Метод

Testing that UrlAlias is found and has expected state.
public testLookupCustomLocationUrlAliasCaseCorrection ( $url, array $pathData, array $languageCodes, $forward, $alwaysAvailable, $destination, $id )
$pathData array
$languageCodes array

testLookupLocationCaseCorrection() публичный Метод

Note that case corrected path is not always equal to case corrected case incorrect path, eg. "JEDAN/TWO/THREE" will not always redirect to "jedan/two/three". In some cases, depending on list of prioritized languages and if Content available in the different language higher in the list of prioritized languages, path showing to that Content will be used. Example: "JEDAN/TWO/DREI" with "eng-GB" and "ger-DE" as prioritized languages will produce redirection to the "jedan/two/three", as "eng-GB" is the most prioritized language and Content that URL alias is pointing to is available in it.
public testLookupLocationCaseCorrection ( $url, array $pathData, array $languageCodes, $alwaysAvailable, $locationId, $id )
$pathData array
$languageCodes array

testLookupLocationHistoryUrlAlias() публичный Метод

Test for the lookup() method.

testLookupLocationMultipleLanguages() публичный Метод

Test for the lookup() method.
public testLookupLocationMultipleLanguages ( $url, array $pathData, array $languageCodes, $alwaysAvailable, $locationId, $id )
$pathData array
$languageCodes array

testLookupLocationUrlAlias() публичный Метод

Testing that UrlAlias is found and has expected state.
public testLookupLocationUrlAlias ( $url, array $pathData, array $languageCodes, $alwaysAvailable, $locationId, $id )
$pathData array
$languageCodes array

testLookupResourceUrlAlias() публичный Метод

Testing that UrlAlias is found and has expected state.
public testLookupResourceUrlAlias ( $url, $pathData, array $languageCodes, $forward, $alwaysAvailable, $destination, $id )
$languageCodes array

testLookupResourceUrlAliasCaseInsensitive() публичный Метод

Testing that UrlAlias is found and has expected state.
public testLookupResourceUrlAliasCaseInsensitive ( $url, $pathData, array $languageCodes, $forward, $alwaysAvailable, $destination, $id )
$languageCodes array

testLookupThrowsNotFoundException() публичный Метод

Trying to lookup non existent URL alias throws NotFoundException.

testLookupUppercaseIri() публичный Метод

Test for the lookup() method with uppercase utf8 characters.

testLookupVirtualUrlAlias() публичный Метод

Testing that NOP action redirects to site root.
public testLookupVirtualUrlAlias ( $url, $id )

testPublishUrlAliasCreatesUniqueAlias() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocation() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocationComplex() публичный Метод

Test for the publishUrlAliasForLocation() method.
public testPublishUrlAliasForLocationComplex ( $url, $pathData, array $languageCodes, $alwaysAvailable, $locationId, $id )
$languageCodes array

testPublishUrlAliasForLocationDowngradesOldEntryRemovesLanguage() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocationDowngradesOldEntryToHistory() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocationRepublish() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocationReusesCustomAlias() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocationReusesHistory() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocationReusesHistoryOfDifferentLanguage() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocationReusingNopElement() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocationReusingNopElementChangesCustomPath() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocationReusingNopElementChangesCustomPathAndCreatesHistory() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocationSameAliasForMultipleLanguages() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocationSkipsReservedWord() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasForLocationUpdatesLocationPathIdentificationString() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasReuseAutogeneratedCleanup() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasReuseHistoryCleanup() публичный Метод

Test for the publishUrlAliasForLocation() method.

testPublishUrlAliasReuseNopCleanupCustomAliasIsDestroyed() публичный Метод

Test for the publishUrlAliasForLocation() method.

Описание свойств

$dbHandler защищенное свойство

protected ConnectionHandler,eZ\Publish\Core\Persistence\Doctrine $dbHandler
Результат eZ\Publish\Core\Persistence\Doctrine\ConnectionHandler

$languageHandler защищенное свойство

protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\Language $languageHandler
Результат eZ\Publish\Core\Persistence\Legacy\Content\Language\Handler

$languageMaskGenerator защищенное свойство

protected MaskGenerator,eZ\Publish\Core\Persistence\Legacy\Content\Language $languageMaskGenerator
Результат eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator

$locationGateway защищенное свойство

protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationGateway
Результат eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway