You are here

public function SimpletestDeprecationTest::testDeprecatedServices in Drupal 8

@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\Kernel

Code

public function testDeprecatedServices() {
  $this
    ->assertInstanceOf(TestDiscovery::class, $this->container
    ->get('test_discovery'));
}