You are here

public function LanguageNeutralAliasesStorageTest::testPathHasMatchingAlias in Language neutral aliases 8

Test that pathHasMatchingAlias() returns only language neutral aliases.

File

tests/src/Kernel/LanguageNeutralAliasesStorageTest.php, line 258

Class

LanguageNeutralAliasesStorageTest
Test language neutral aliases.

Namespace

Drupal\Tests\language_neutral_aliases\Kernel

Code

public function testPathHasMatchingAlias() {
  $storage = $this->container
    ->get('path.alias_storage');
  $this
    ->assertFalse($storage
    ->pathHasMatchingAlias('/node/1'));
  $this
    ->assertTrue($storage
    ->pathHasMatchingAlias('/node/3'));
}