PHP 클래스 eZ\Publish\Core\Persistence\Legacy\Tests\Content\UrlAliasHandlerTest

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$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