$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'
]);
$this->
assertEquals('/test-source',
$path_alias_repository->
lookupByAlias('/test-alias-case', LanguageInterface::LANGCODE_NOT_SPECIFIED
)['path'
]);
} /**
* @covers \Drupal\path_alias\AliasManager::getPathByAlias
* @covers \Drupal\path_alias\AliasManager::getAliasByPath
*/
public function testLookupPath() { // Create AliasManager and Path object.
$aliasManager =
$this->container->
get('path_alias.manager'
);