You are here

public function LegacyAliasStorageTest::testLookupPathSource in Drupal 8

@covers ::lookupPathSource @expectedDeprecation \Drupal\Core\Path\AliasStorage is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use the "path_alias.repository" service instead, or the entity storage handler for the "path_alias" entity type for CRUD methods. See https://www.drupal.org/node/3013865.

File

core/tests/Drupal/KernelTests/Core/Path/LegacyAliasStorageTest.php, line 174

Class

LegacyAliasStorageTest
@coversDefaultClass \Drupal\Core\Path\AliasStorage @group path @group legacy

Namespace

Drupal\KernelTests\Core\Path

Code

public function testLookupPathSource() {
  $this->storage
    ->save('/test-source', '/test-alias-Case');
  $this
    ->assertEquals('/test-source', $this->storage
    ->lookupPathSource('/test-alias-Case', LanguageInterface::LANGCODE_NOT_SPECIFIED));
  $this
    ->assertEquals('/test-source', $this->storage
    ->lookupPathSource('/test-alias-case', LanguageInterface::LANGCODE_NOT_SPECIFIED));
}