function DeprecatedServicesTest::testNewServiceImplementation
@expectedDeprecation The "path.alias_manager" service is deprecated. Use "path_alias.manager" instead. See https://drupal.org/node/3092086
File
-
core/
modules/ path_alias/ tests/ src/ Kernel/ DeprecatedServicesTest.php, line 60
Class
- DeprecatedServicesTest
- Tests deprecation of path alias core services and the related BC logic.
Namespace
Drupal\Tests\path_alias\KernelCode
public function testNewServiceImplementation() {
$class = $this->setServiceClass(NewAliasManager::class);
$this->assertServiceClass('path.alias_manager', $class);
$this->assertServiceClass('path_alias.manager', AliasManager::class);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.