function AliasManagerTest::testGetAliasByPathException
Same name and namespace in other branches
- 11.x core/modules/path_alias/tests/src/Unit/AliasManagerTest.php \Drupal\Tests\path_alias\Unit\AliasManagerTest::testGetAliasByPathException()
- 10 core/modules/path_alias/tests/src/Unit/AliasManagerTest.php \Drupal\Tests\path_alias\Unit\AliasManagerTest::testGetAliasByPathException()
Tests the getAliasByPath method exception.
File
-
core/
modules/ path_alias/ tests/ src/ Unit/ AliasManagerTest.php, line 200
Class
Namespace
Drupal\Tests\path_alias\UnitCode
public function testGetAliasByPathException() : void {
$this->expectException(\InvalidArgumentException::class);
$this->aliasManager
->getAliasByPath('no-leading-slash-here');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.