PHP Class eZ\Publish\Core\Persistence\Legacy\Tests\Content\UrlAlias\SlugConverterTest

Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$configuration array
$slugConverter eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter
$slugConverterMock PHPUnit_Framework_MockObject_MockObject
$transformationProcessorMock PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
cleanupTextData ( )
convertData ( )
providerForTestGetUniqueCounterValue ( )
suite ( ) : PHPUnit_Framework_TestSuite Returns the test suite with all tests declared in this class.
testCleanupText ( $text, $method, $expected ) Test for the cleanupText() method.
testConstructor ( ) Test for the __construct() method.
testConvert ( ) Test for the convert() method.
testConvertNoMocking ( $text, $defaultText, $transformation, $expected ) Test for the convert() method.
testConvertWithDefaultTextFallback ( ) Test for the convert() method.
testConvertWithGivenTransformation ( ) Test for the convert() method.
testGetUniqueCounterValue ( $text, $isRootLevel, $returnValue ) Test for the getUniqueCounterValue() method.

Protected Methods

Method Description
getMockedSlugConverter ( ) : SlugConverter
getSlugConverterMock ( array $methods = [] ) : SlugConverter | PHPUnit_Framework_MockObject_MockObject
getTransformationProcessorMock ( ) : PHPUnit_Framework_MockObject_MockObject

Method Details

cleanupTextData() public method

public cleanupTextData ( )

convertData() public method

public convertData ( )

getMockedSlugConverter() protected method

protected getMockedSlugConverter ( ) : SlugConverter
return eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter

getSlugConverterMock() protected method

protected getSlugConverterMock ( array $methods = [] ) : SlugConverter | PHPUnit_Framework_MockObject_MockObject
$methods array
return eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter | PHPUnit_Framework_MockObject_MockObject

getTransformationProcessorMock() protected method

protected getTransformationProcessorMock ( ) : PHPUnit_Framework_MockObject_MockObject
return PHPUnit_Framework_MockObject_MockObject

providerForTestGetUniqueCounterValue() public method

suite() public static method

Returns the test suite with all tests declared in this class.
public static suite ( ) : PHPUnit_Framework_TestSuite
return PHPUnit_Framework_TestSuite

testCleanupText() public method

Test for the cleanupText() method.
public testCleanupText ( $text, $method, $expected )

testConstructor() public method

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

testConvert() public method

Test for the convert() method.
public testConvert ( )

testConvertNoMocking() public method

Test for the convert() method.
public testConvertNoMocking ( $text, $defaultText, $transformation, $expected )

testConvertWithDefaultTextFallback() public method

Test for the convert() method.

testConvertWithGivenTransformation() public method

Test for the convert() method.

testGetUniqueCounterValue() public method

Test for the getUniqueCounterValue() method.
public testGetUniqueCounterValue ( $text, $isRootLevel, $returnValue )

Property Details

$configuration protected property

protected array $configuration
return array

$slugConverter protected property

protected SlugConverter,eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias $slugConverter
return eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter

$slugConverterMock protected property

protected PHPUnit_Framework_MockObject_MockObject $slugConverterMock
return PHPUnit_Framework_MockObject_MockObject

$transformationProcessorMock protected property

protected PHPUnit_Framework_MockObject_MockObject $transformationProcessorMock
return PHPUnit_Framework_MockObject_MockObject