function AliasManagerTest::testGetAliasByPathException
Tests the getAliasByPath method exception.
@covers ::getAliasByPath
File
-
core/
modules/ path_alias/ tests/ src/ Unit/ AliasManagerTest.php, line 218
Class
- AliasManagerTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21path_alias%21src%21AliasManager.php/class/AliasManager/11.x" title="The default alias manager implementation." class="local">\Drupal\path_alias\AliasManager</a> @group path_alias
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.