You are here

public function AliasStorageTest::testLookupPathAlias in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/KernelTests/Core/Path/AliasStorageTest.php \Drupal\KernelTests\Core\Path\AliasStorageTest::testLookupPathAlias()

@covers ::lookupPathAlias

File

core/tests/Drupal/KernelTests/Core/Path/AliasStorageTest.php, line 59
Contains \Drupal\KernelTests\Core\Path\AliasStorageTest.

Class

AliasStorageTest
@coversDefaultClass \Drupal\Core\Path\AliasStorage @group path

Namespace

Drupal\KernelTests\Core\Path

Code

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