$this->
installEntitySchema('path_alias'
);
} /**
* @covers ::lookupBySystemPath
*/
public function testLookupBySystemPath() { $this->
createPathAlias('/test-source-Case', '/test-alias'
);
$path_alias_repository =
$this->container->
get('path_alias.repository'
);
$this->
assertEquals('/test-alias',
$path_alias_repository->
lookupBySystemPath('/test-source-Case', LanguageInterface::LANGCODE_NOT_SPECIFIED
)['alias'
]);
$this->
assertEquals('/test-alias',
$path_alias_repository->
lookupBySystemPath('/test-source-case', LanguageInterface::LANGCODE_NOT_SPECIFIED
)['alias'
]);
} /**
* @covers ::lookupByAlias
*/
public function testLookupByAlias() { $this->
createPathAlias('/test-source', '/test-alias-Case'
);
$path_alias_repository =
$this->container->
get('path_alias.repository'
);
$this->
assertEquals('/test-source',
$path_alias_repository->
lookupByAlias('/test-alias-Case', LanguageInterface::LANGCODE_NOT_SPECIFIED
)['path'
]);