PHP Класс eZ\Publish\Core\Persistence\Legacy\Tests\Content\UrlAlias\SlugConverterTest

Наследование: extends eZ\Publish\Core\Persistence\Legacy\Tests\TestCase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$configuration array
$slugConverter eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter
$slugConverterMock PHPUnit_Framework_MockObject_MockObject
$transformationProcessorMock PHPUnit_Framework_MockObject_MockObject

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

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

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

Метод Описание
getMockedSlugConverter ( ) : SlugConverter
getSlugConverterMock ( array $methods = [] ) : SlugConverter | PHPUnit_Framework_MockObject_MockObject
getTransformationProcessorMock ( ) : PHPUnit_Framework_MockObject_MockObject

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

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

public cleanupTextData ( )

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

public convertData ( )

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

protected getMockedSlugConverter ( ) : SlugConverter
Результат eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter

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

protected getSlugConverterMock ( array $methods = [] ) : SlugConverter | PHPUnit_Framework_MockObject_MockObject
$methods array
Результат eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter | PHPUnit_Framework_MockObject_MockObject

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

protected getTransformationProcessorMock ( ) : PHPUnit_Framework_MockObject_MockObject
Результат PHPUnit_Framework_MockObject_MockObject

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

suite() публичный статический Метод

Returns the test suite with all tests declared in this class.
public static suite ( ) : PHPUnit_Framework_TestSuite
Результат PHPUnit_Framework_TestSuite

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

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

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

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

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

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

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

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

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

Test for the convert() method.

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

Test for the convert() method.

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

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

Описание свойств

$configuration защищенное свойство

protected array $configuration
Результат array

$slugConverter защищенное свойство

protected SlugConverter,eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias $slugConverter
Результат eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter

$slugConverterMock защищенное свойство

protected PHPUnit_Framework_MockObject_MockObject $slugConverterMock
Результат PHPUnit_Framework_MockObject_MockObject

$transformationProcessorMock защищенное свойство

protected PHPUnit_Framework_MockObject_MockObject $transformationProcessorMock
Результат PHPUnit_Framework_MockObject_MockObject