You are here

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

@covers ::aliasExists

File

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

Class

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

Namespace

Drupal\KernelTests\Core\Path

Code

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