PHP Класс eZ\Publish\Core\Repository\Tests\Service\Mock\UrlAliasTest

Наследование: extends Base
Показать файл Открыть проект

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

Метод Описание
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.

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

Метод Описание
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 )

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

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

protected getLocationStub ( integer $id = 42 ) : Location
$id integer
Результат eZ\Publish\Core\Repository\Values\Content\Location

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

Injected Repository comes from {@see \getRepositoryMock()} and persistence handler from {@see \getPersistenceMock()}
protected getPartlyMockedURLAliasServiceService ( array $methods = null ) : URLAliasService | PHPUnit_Framework_MockObject_MockObject
$methods array
Результат eZ\Publish\Core\Repository\URLAliasService | PHPUnit_Framework_MockObject_MockObject

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

protected getSpiUrlAlias ( )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.
public testCreateUrlAlias ( )

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

Test for the createUrlAlias() method.

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

Test for the createUrlAlias() method.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.
public testLoad ( )

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

Test for the load() method.

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

Test for the load() method.

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

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

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

Test for the lookup() method.

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

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

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

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

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

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

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

Test for the removeAliases() method.

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

Test for the removeAliases() method.

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

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

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

Test for the reverseLookup() method.

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

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

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

Test for the reverseLookup() method.

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

Test for the reverseLookup() method.