eZ\Publish\Core\Persistence\Legacy\Tests\Content\UrlAlias\SlugConverterTest::testConvertNoMocking PHP Method

testConvertNoMocking() public method

Test for the convert() method.
public testConvertNoMocking ( $text, $defaultText, $transformation, $expected )
    public function testConvertNoMocking($text, $defaultText, $transformation, $expected)
    {
        $transformationProcessor = new PreprocessedBased(new PcreCompiler(new Utf8Converter()), [__DIR__ . '../../../../../Tests/TransformationProcessor/_fixtures/transformations/ascii.tr.result', __DIR__ . '../../../../../Tests/TransformationProcessor/_fixtures/transformations/basic.tr.result', __DIR__ . '../../../../../Tests/TransformationProcessor/_fixtures/transformations/latin.tr.result', __DIR__ . '../../../../../Tests/TransformationProcessor/_fixtures/transformations/search.tr.result']);
        $slugConverter = new SlugConverter($transformationProcessor);
        $this->assertEquals($expected, $slugConverter->convert($text, $defaultText, $transformation));
    }