function SimpletestDeprecationTest::testDeprecatedServices
@expectedDeprecation Drupal\simpletest\TestDiscovery is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDiscovery instead. See https://www.drupal.org/node/2949692 @expectedDeprecation The "test_discovery" service relies on the deprecated "Drupal\simpletest\TestDiscovery" class. It should either be deprecated or its implementation upgraded.
File
-
core/
modules/ simpletest/ tests/ src/ Kernel/ SimpletestDeprecationTest.php, line 33
Class
- SimpletestDeprecationTest
- Verify deprecations within the simpletest module.
Namespace
Drupal\Tests\simpletest\KernelCode
public function testDeprecatedServices() {
$this->assertInstanceOf(TestDiscovery::class, $this->container
->get('test_discovery'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.