function DeprecatedServicesTest::testDecoratorForOverriddenServiceImplementation
@expectedDeprecation The "path_alias_deprecated_test.path.alias_manager.inner" service is deprecated. Use "path_alias.manager" instead. See https://drupal.org/node/3092086 @expectedDeprecation The \Drupal\Core\Path\AliasManager class is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Instead, use \Drupal\path_alias\AliasManager. See https://drupal.org/node/3092086
File
-
core/
modules/ path_alias/ tests/ src/ Kernel/ DeprecatedServicesTest.php, line 70
Class
- DeprecatedServicesTest
- Tests deprecation of path alias core services and the related BC logic.
Namespace
Drupal\Tests\path_alias\KernelCode
public function testDecoratorForOverriddenServiceImplementation() {
$this->setServiceClass(OverriddenAliasManager::class, TRUE);
$this->assertServiceClass('path.alias_manager', AliasManagerDecorator::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.