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

Inheritance: extends Base
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method 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.

Protected Methods

Method 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 method

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

getPartlyMockedURLAliasServiceService() protected method

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

getSpiUrlAlias() protected method

protected getSpiUrlAlias ( )

providerForTestListAutogeneratedLocationAliasesAlwaysAvailablePath() public method

providerForTestListAutogeneratedLocationAliasesEmpty() public method

providerForTestListAutogeneratedLocationAliasesMultipleLanguagesEmpty() public method

providerForTestListAutogeneratedLocationAliasesMultipleLanguagesPath() public method

providerForTestListAutogeneratedLocationAliasesPath() public method

providerForTestListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailableEmpty() public method

providerForTestListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailablePath() public method

providerForTestListAutogeneratedLocationAliasesWithLanguageCodeEmpty() public method

providerForTestListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesEmpty() public method

providerForTestListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesPath() public method

providerForTestListAutogeneratedLocationAliasesWithLanguageCodePath() public method

providerForTestLookup() public method

providerForTestLookupThrowsNotFoundExceptionPath() public method

providerForTestLookupWithSharedTranslation() public method

providerForTestReverseLookup() public method

providerForTestReverseLookupAlwaysAvailablePath() public method

setConfiguration() protected method

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

testConstructor() public method

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

testCreateGlobalUrlAlias() public method

Test for the createGlobalUrlAlias() method.

testCreateGlobalUrlAliasForLocation() public method

Test for the createGlobalUrlAlias() method.

testCreateGlobalUrlAliasThrowsInvalidArgumentExceptionPath() public method

Test for the createGlobalUrlAlias() method.

testCreateGlobalUrlAliasThrowsInvalidArgumentExceptionResource() public method

Test for the createGlobalUrlAlias() method.

testCreateGlobalUrlAliasWithRollback() public method

Test for the createGlobalUrlAlias() method.

testCreateUrlAlias() public method

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

testCreateUrlAliasThrowsInvalidArgumentException() public method

Test for the createUrlAlias() method.

testCreateUrlAliasWithRollback() public method

Test for the createUrlAlias() method.

testListAutogeneratedLocationAliasesAlwaysAvailablePath() public method

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

testListAutogeneratedLocationAliasesAlwaysAvailablePathCustomConfiguration() public method

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

testListAutogeneratedLocationAliasesEmpty() public method

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

testListAutogeneratedLocationAliasesEmptyCustomConfiguration() public method

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

testListAutogeneratedLocationAliasesMultipleLanguagesEmpty() public method

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

testListAutogeneratedLocationAliasesMultipleLanguagesEmptyCustomConfiguration() public method

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

testListAutogeneratedLocationAliasesMultipleLanguagesPath() public method

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

testListAutogeneratedLocationAliasesMultipleLanguagesPathCustomConfiguration() public method

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

testListAutogeneratedLocationAliasesPath() public method

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

testListAutogeneratedLocationAliasesPathCustomConfiguration() public method

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

testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailableEmpty() public method

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

testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailableEmptyCustomConfiguration() public method

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

testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailablePath() public method

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

testListAutogeneratedLocationAliasesWithLanguageCodeAlwaysAvailablePathCustomConfiguration() public method

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

testListAutogeneratedLocationAliasesWithLanguageCodeEmpty() public method

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

testListAutogeneratedLocationAliasesWithLanguageCodeEmptyCustomConfiguration() public method

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

testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesEmpty() public method

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

testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesEmptyCustomConfiguration() public method

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

testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesPath() public method

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

testListAutogeneratedLocationAliasesWithLanguageCodeMultipleLanguagesPathCustomConfiguration() public method

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

testListAutogeneratedLocationAliasesWithLanguageCodePath() public method

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

testListAutogeneratedLocationAliasesWithLanguageCodePathCustomConfiguration() public method

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

testListGlobalAliases() public method

Test for the listGlobalAliases() method.

testListGlobalAliasesEmpty() public method

Test for the listGlobalAliases() method.

testListGlobalAliasesWithParameters() public method

Test for the listGlobalAliases() method.

testListLocationAliasesWithShowAllTranslations() public method

Test for the load() method.

testListLocationAliasesWithShowAllTranslationsCustomConfiguration() public method

Test for the load() method.

testLoad() public method

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

testLoadThrowsNotFoundException() public method

Test for the load() method.

testLoadThrowsNotFoundExceptionPath() public method

Test for the load() method.

testLookup() public method

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

testLookupThrowsNotFoundException() public method

Test for the lookup() method.

testLookupThrowsNotFoundExceptionPathNotMatchedOrNotLoadable() public method

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

testLookupWithSharedTranslation() public method

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

testRemoveAliases() public method

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

testRemoveAliasesThrowsInvalidArgumentException() public method

Test for the removeAliases() method.

testRemoveAliasesWithRollback() public method

Test for the removeAliases() method.

testReverseLookupAlwaysAvailablePath() public method

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

testReverseLookupCustomConfiguration() public method

Test for the reverseLookup() method.

testReverseLookupPath() public method

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

testReverseLookupThrowsNotFoundException() public method

Test for the reverseLookup() method.

testReverseLookupWithShowAllTranslations() public method

Test for the reverseLookup() method.