PHP Class eZ\Publish\Core\Repository\Tests\Service\Integration\UrlWildcardTest

Inheritance: extends eZ\Publish\Core\Repository\Tests\Service\Mock\Base
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
providerForTestCreate ( )
providerForTestCreateThrowsContentValidationException ( )
providerForTestTranslate ( ) : array
providerForTestTranslateThrowsNotFoundException ( ) : array
testConstructor ( ) Test for the __construct() method.
testCreate ( $sourceUrl, $destinationUrl, $forward ) Test for the create() method.
testCreateThrowsContentValidationException ( $sourceUrl, $destinationUrl, $forward ) Test for the create() method.
testCreateThrowsInvalidArgumentException ( ) Test for the create() method.
testCreateThrowsUnauthorizedException ( ) Test for the create() method.
testCreateWithRollback ( ) Test for the create() method.
testLoad ( ) Test for the load() method.
testLoadAll ( ) Test for the loadAll() method.
testLoadAllWithLimitAndOffset ( ) Test for the loadAll() method.
testLoadThrowsException ( ) Test for the load() method.
testRemove ( ) Test for the remove() method.
testRemoveThrowsUnauthorizedException ( ) Test for the remove() method.
testRemoveWithRollback ( ) Test for the remove() method.
testTranslate ( $createArray, $url, $uri ) Test for the translate() method.
testTranslateThrowsNotFoundException ( $createArray, $url ) Test for the translate() method.
testTranslateUsesLongestMatchingWildcard ( ) Test for the translate() method.

Protected Methods

Method Description
getPartlyMockedURLWildcardService ( array $methods = null ) : URLWildcardService | PHPUnit_Framework_MockObject_MockObject Returns the content service to test with $methods mocked.

Method Details

getPartlyMockedURLWildcardService() protected method

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

providerForTestCreate() public method

providerForTestCreateThrowsContentValidationException() public method

providerForTestTranslate() public method

public providerForTestTranslate ( ) : array
return array

providerForTestTranslateThrowsNotFoundException() public method

testConstructor() public method

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

testCreate() public method

Test for the create() method.
public testCreate ( $sourceUrl, $destinationUrl, $forward )

testCreateThrowsContentValidationException() public method

Test for the create() method.
public testCreateThrowsContentValidationException ( $sourceUrl, $destinationUrl, $forward )

testCreateThrowsInvalidArgumentException() public method

Test for the create() method.

testCreateThrowsUnauthorizedException() public method

Test for the create() method.

testCreateWithRollback() public method

Test for the create() method.

testLoad() public method

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

testLoadAll() public method

Test for the loadAll() method.
public testLoadAll ( )

testLoadAllWithLimitAndOffset() public method

Test for the loadAll() method.

testLoadThrowsException() public method

Test for the load() method.

testRemove() public method

Test for the remove() method.
public testRemove ( )

testRemoveThrowsUnauthorizedException() public method

Test for the remove() method.

testRemoveWithRollback() public method

Test for the remove() method.

testTranslate() public method

Test for the translate() method.
public testTranslate ( $createArray, $url, $uri )

testTranslateThrowsNotFoundException() public method

Test for the translate() method.
public testTranslateThrowsNotFoundException ( $createArray, $url )

testTranslateUsesLongestMatchingWildcard() public method

Test for the translate() method.