PHP Class eZ\Publish\Core\Repository\Tests\Service\Mock\UrlAliasTest

Inheritance: extends Base
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode Description
providerForTestListAutogeneratedLocationAliasesAlwaysAvailablePath ( )
providerForTestListAutogeneratedLocationAliasesEmpty ( )
providerForTestListAutogeneratedLocationAliasesMultipleLanguagesEmpty ( )
providerForTestListAutogeneratedLocationAliasesMultipleLanguagesPath ( )
providerForTestListAutogeneratedLocationAliasesPath ( )
providerForTestListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailableEmpty ( )
providerForTestListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailablePath ( )
providerForTestListAutogeneratedLocationAliasesWithLanguageCodeEmpty ( )
providerForTestListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesEmpty ( )
providerForTestListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesPath ( )
providerForTestListAutogeneratedLocationAliasesWithLanguageCodePath ( )
providerForTestLookup ( )
providerForTestLookupThrowsNotFoundExceptionPath ( )
providerForTestLookupWithSharedTranslation ( )
providerForTestReverseLookup ( )
providerForTestReverseLookupAlwaysAvailablePath ( )
testConstructor ( ) Test for the __construct() method.
testCreateGlobalUrlAlias ( ) Test for the createGlobalUrlAlias() method.
testCreateGlobalUrlAliasForLocation ( ) Test for the createGlobalUrlAlias() method.
testCreateGlobalUrlAliasThrowsInvalidArgumentExceptionPath ( ) Test for the createGlobalUrlAlias() method.
testCreateGlobalUrlAliasThrowsInvalidArgumentExceptionResource ( ) Test for the createGlobalUrlAlias() method.
testCreateGlobalUrlAliasWithRollback ( ) Test for the createGlobalUrlAlias() method.
testCreateUrlAlias ( ) Test for the createUrlAlias() method.
testCreateUrlAliasThrowsInvalidArgumentException ( ) Test for the createUrlAlias() method.
testCreateUrlAliasWithRollback ( ) Test for the createUrlAlias() method.
testListAutogeneratedLocationAliasesAlwaysAvailablePath ( $spiUrlAliases, $prioritizedLanguageCodes, $paths ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesAlwaysAvailablePathCustomConfiguration ( $spiUrlAliases, $prioritizedLanguageCodes, $paths ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesEmpty ( $spiUrlAliases, $prioritizedLanguageCodes ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesEmptyCustomConfiguration ( $spiUrlAliases, $prioritizedLanguageCodes ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesMultipleLanguagesEmpty ( $spiUrlAliases, $prioritizedLanguageCodes ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesMultipleLanguagesEmptyCustomConfiguration ( $spiUrlAliases, $prioritizedLanguageCodes ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesMultipleLanguagesPath ( $spiUrlAliases, $prioritizedLanguageCodes, $paths ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesMultipleLanguagesPathCustomConfiguration ( $spiUrlAliases, $prioritizedLanguageCodes, $paths ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesPath ( $spiUrlAliases, $prioritizedLanguageCodes, $paths ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesPathCustomConfiguration ( $spiUrlAliases, $prioritizedLanguageCodes, $paths ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailableEmpty ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailableEmptyCustomConfiguration ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailablePath ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes, $paths ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailablePathCustomConfiguration ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes, $paths ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesWithLanguageCodeEmpty ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesWithLanguageCodeEmptyCustomConfiguration ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesEmpty ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesEmptyCustomConfiguration ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesPath ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes, $paths ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesPathCustomConfiguration ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes, $paths ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesWithLanguageCodePath ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes, $paths ) Test for the listLocationAliases() method.
testListAutogeneratedLocationAliasesWithLanguageCodePathCustomConfiguration ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes, $paths ) Test for the listLocationAliases() method.
testListGlobalAliases ( ) Test for the listGlobalAliases() method.
testListGlobalAliasesEmpty ( ) Test for the listGlobalAliases() method.
testListGlobalAliasesWithParameters ( ) Test for the listGlobalAliases() method.
testListLocationAliasesWithShowAllTranslations ( ) Test for the load() method.
testListLocationAliasesWithShowAllTranslationsCustomConfiguration ( ) Test for the load() method.
testLoad ( ) Test for the load() method.
testLoadThrowsNotFoundException ( ) Test for the load() method.
testLoadThrowsNotFoundExceptionPath ( ) Test for the load() method.
testLookup ( $prioritizedLanguageList, $showAllTranslations, $alwaysAvailable, $languageCode ) Test for the lookup() method.
testLookupThrowsNotFoundException ( ) Test for the lookup() method.
testLookupThrowsNotFoundExceptionPathNotMatchedOrNotLoadable ( $url, $prioritizedLanguageList, $languageCode ) Test for the lookup() method.
testLookupWithSharedTranslation ( $prioritizedLanguageList, $showAllTranslations, $alwaysAvailable, $languageCode ) Test for the lookup() method.
testRemoveAliases ( ) Test for the removeAliases() method.
testRemoveAliasesThrowsInvalidArgumentException ( ) Test for the removeAliases() method.
testRemoveAliasesWithRollback ( ) Test for the removeAliases() method.
testReverseLookupAlwaysAvailablePath ( $spiUrlAliases, $prioritizedLanguageCodes, $paths ) Test for the reverseLookup() method.
testReverseLookupCustomConfiguration ( ) Test for the reverseLookup() method.
testReverseLookupPath ( $spiUrlAliases, $prioritizedLanguageCodes, $paths, $reverseLookupLanguageCode ) Test for the reverseLookup() method.
testReverseLookupThrowsNotFoundException ( ) Test for the reverseLookup() method.
testReverseLookupWithShowAllTranslations ( ) Test for the reverseLookup() method.

Méthodes protégées

Méthode Description
getLocationStub ( integer $id = 42 ) : Location
getPartlyMockedURLAliasServiceService ( array $methods = null ) : URLAliasService | PHPUnit_Framework_MockObject_MockObject Returns the content service to test with $methods mocked.
getSpiUrlAlias ( )
setConfiguration ( object $urlAliasService, array $configuration )

Method Details

getLocationStub() protected méthode

protected getLocationStub ( integer $id = 42 ) : Location
$id integer
Résultat eZ\Publish\Core\Repository\Values\Content\Location

getPartlyMockedURLAliasServiceService() protected méthode

Injected Repository comes from {@see \getRepositoryMock()} and persistence handler from {@see \getPersistenceMock()}
protected getPartlyMockedURLAliasServiceService ( array $methods = null ) : URLAliasService | PHPUnit_Framework_MockObject_MockObject
$methods array
Résultat eZ\Publish\Core\Repository\URLAliasService | PHPUnit_Framework_MockObject_MockObject

getSpiUrlAlias() protected méthode

protected getSpiUrlAlias ( )

providerForTestListAutogeneratedLocationAliasesAlwaysAvailablePath() public méthode

providerForTestListAutogeneratedLocationAliasesEmpty() public méthode

providerForTestListAutogeneratedLocationAliasesMultipleLanguagesEmpty() public méthode

providerForTestListAutogeneratedLocationAliasesMultipleLanguagesPath() public méthode

providerForTestListAutogeneratedLocationAliasesPath() public méthode

providerForTestListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailableEmpty() public méthode

providerForTestListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailablePath() public méthode

providerForTestListAutogeneratedLocationAliasesWithLanguageCodeEmpty() public méthode

providerForTestListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesEmpty() public méthode

providerForTestListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesPath() public méthode

providerForTestListAutogeneratedLocationAliasesWithLanguageCodePath() public méthode

providerForTestLookup() public méthode

providerForTestLookupThrowsNotFoundExceptionPath() public méthode

providerForTestLookupWithSharedTranslation() public méthode

providerForTestReverseLookup() public méthode

providerForTestReverseLookupAlwaysAvailablePath() public méthode

setConfiguration() protected méthode

protected setConfiguration ( object $urlAliasService, array $configuration )
$urlAliasService object
$configuration array

testConstructor() public méthode

Test for the __construct() method.
public testConstructor ( )

testCreateGlobalUrlAlias() public méthode

Test for the createGlobalUrlAlias() method.

testCreateGlobalUrlAliasForLocation() public méthode

Test for the createGlobalUrlAlias() method.

testCreateGlobalUrlAliasThrowsInvalidArgumentExceptionPath() public méthode

Test for the createGlobalUrlAlias() method.

testCreateGlobalUrlAliasThrowsInvalidArgumentExceptionResource() public méthode

Test for the createGlobalUrlAlias() method.

testCreateGlobalUrlAliasWithRollback() public méthode

Test for the createGlobalUrlAlias() method.

testCreateUrlAlias() public méthode

Test for the createUrlAlias() method.
public testCreateUrlAlias ( )

testCreateUrlAliasThrowsInvalidArgumentException() public méthode

Test for the createUrlAlias() method.

testCreateUrlAliasWithRollback() public méthode

Test for the createUrlAlias() method.

testListAutogeneratedLocationAliasesAlwaysAvailablePath() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesAlwaysAvailablePath ( $spiUrlAliases, $prioritizedLanguageCodes, $paths )

testListAutogeneratedLocationAliasesAlwaysAvailablePathCustomConfiguration() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesAlwaysAvailablePathCustomConfiguration ( $spiUrlAliases, $prioritizedLanguageCodes, $paths )

testListAutogeneratedLocationAliasesEmpty() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesEmpty ( $spiUrlAliases, $prioritizedLanguageCodes )

testListAutogeneratedLocationAliasesEmptyCustomConfiguration() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesEmptyCustomConfiguration ( $spiUrlAliases, $prioritizedLanguageCodes )

testListAutogeneratedLocationAliasesMultipleLanguagesEmpty() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesMultipleLanguagesEmpty ( $spiUrlAliases, $prioritizedLanguageCodes )

testListAutogeneratedLocationAliasesMultipleLanguagesEmptyCustomConfiguration() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesMultipleLanguagesEmptyCustomConfiguration ( $spiUrlAliases, $prioritizedLanguageCodes )

testListAutogeneratedLocationAliasesMultipleLanguagesPath() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesMultipleLanguagesPath ( $spiUrlAliases, $prioritizedLanguageCodes, $paths )

testListAutogeneratedLocationAliasesMultipleLanguagesPathCustomConfiguration() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesMultipleLanguagesPathCustomConfiguration ( $spiUrlAliases, $prioritizedLanguageCodes, $paths )

testListAutogeneratedLocationAliasesPath() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesPath ( $spiUrlAliases, $prioritizedLanguageCodes, $paths )

testListAutogeneratedLocationAliasesPathCustomConfiguration() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesPathCustomConfiguration ( $spiUrlAliases, $prioritizedLanguageCodes, $paths )

testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailableEmpty() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailableEmpty ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes )

testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailableEmptyCustomConfiguration() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailableEmptyCustomConfiguration ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes )

testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailablePath() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailablePath ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes, $paths )

testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailablePathCustomConfiguration() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailablePathCustomConfiguration ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes, $paths )

testListAutogeneratedLocationAliasesWithLanguageCodeEmpty() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesWithLanguageCodeEmpty ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes )

testListAutogeneratedLocationAliasesWithLanguageCodeEmptyCustomConfiguration() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesWithLanguageCodeEmptyCustomConfiguration ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes )

testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesEmpty() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesEmpty ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes )

testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesEmptyCustomConfiguration() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesEmptyCustomConfiguration ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes )

testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesPath() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesPath ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes, $paths )

testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesPathCustomConfiguration() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesPathCustomConfiguration ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes, $paths )

testListAutogeneratedLocationAliasesWithLanguageCodePath() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesWithLanguageCodePath ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes, $paths )

testListAutogeneratedLocationAliasesWithLanguageCodePathCustomConfiguration() public méthode

Test for the listLocationAliases() method.
public testListAutogeneratedLocationAliasesWithLanguageCodePathCustomConfiguration ( $spiUrlAliases, $languageCode, $prioritizedLanguageCodes, $paths )

testListGlobalAliases() public méthode

Test for the listGlobalAliases() method.

testListGlobalAliasesEmpty() public méthode

Test for the listGlobalAliases() method.

testListGlobalAliasesWithParameters() public méthode

Test for the listGlobalAliases() method.

testListLocationAliasesWithShowAllTranslations() public méthode

Test for the load() method.

testListLocationAliasesWithShowAllTranslationsCustomConfiguration() public méthode

Test for the load() method.

testLoad() public méthode

Test for the load() method.
public testLoad ( )

testLoadThrowsNotFoundException() public méthode

Test for the load() method.

testLoadThrowsNotFoundExceptionPath() public méthode

Test for the load() method.

testLookup() public méthode

Test for the lookup() method.
public testLookup ( $prioritizedLanguageList, $showAllTranslations, $alwaysAvailable, $languageCode )

testLookupThrowsNotFoundException() public méthode

Test for the lookup() method.

testLookupThrowsNotFoundExceptionPathNotMatchedOrNotLoadable() public méthode

Test for the lookup() method.
public testLookupThrowsNotFoundExceptionPathNotMatchedOrNotLoadable ( $url, $prioritizedLanguageList, $languageCode )

testLookupWithSharedTranslation() public méthode

Test for the lookup() method.
public testLookupWithSharedTranslation ( $prioritizedLanguageList, $showAllTranslations, $alwaysAvailable, $languageCode )

testRemoveAliases() public méthode

Test for the removeAliases() method.
public testRemoveAliases ( )

testRemoveAliasesThrowsInvalidArgumentException() public méthode

Test for the removeAliases() method.

testRemoveAliasesWithRollback() public méthode

Test for the removeAliases() method.

testReverseLookupAlwaysAvailablePath() public méthode

Test for the reverseLookup() method.
public testReverseLookupAlwaysAvailablePath ( $spiUrlAliases, $prioritizedLanguageCodes, $paths )

testReverseLookupCustomConfiguration() public méthode

Test for the reverseLookup() method.

testReverseLookupPath() public méthode

Test for the reverseLookup() method.
public testReverseLookupPath ( $spiUrlAliases, $prioritizedLanguageCodes, $paths, $reverseLookupLanguageCode )

testReverseLookupThrowsNotFoundException() public méthode

Test for the reverseLookup() method.

testReverseLookupWithShowAllTranslations() public méthode

Test for the reverseLookup() method.