You are here

public function AliasStorageTest::testLookupPathSource 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::testLookupPathSource()

@covers ::lookupPathSource

File

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

Class

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

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));
}