function DeprecatedClassesTest::testPathSubscriber
@covers \Drupal\Core\EventSubscriber\PathSubscriber::__construct
@expectedDeprecation The \Drupal\Core\EventSubscriber\PathSubscriber class is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Instead, use \Drupal\path_alias\EventSubscriber\PathAliasSubscriber. See https://drupal.org/node/3092086
File
-
core/
modules/ path_alias/ tests/ src/ Unit/ DeprecatedClassesTest.php, line 111
Class
- DeprecatedClassesTest
- Tests deprecation of path alias core service classes.
Namespace
Drupal\Tests\path_alias\UnitCode
public function testPathSubscriber() {
new PathSubscriber($this->aliasManager, $this->currentPathStack);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.