You are here

class TestServiceProvider in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/KernelTests/TestServiceProvider.php \Drupal\KernelTests\TestServiceProvider
  2. 8 core/modules/simpletest/src/TestServiceProvider.php \Drupal\simpletest\TestServiceProvider

Provides special routing services for tests.

Hierarchy

Expanded class hierarchy of TestServiceProvider

Deprecated

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\KernelTests\TestServiceProvider instead.

See also

https://www.drupal.org/node/2943146

File

core/modules/simpletest/src/TestServiceProvider.php, line 15

Namespace

Drupal\simpletest
View source
class TestServiceProvider extends CoreTestServiceProvider {

}

Members

Namesort descending Modifiers Type Description Overrides
TestServiceProvider::$currentTest public static property
TestServiceProvider::addRouteProvider public static function Add the on demand rebuild route provider service.
TestServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter
TestServiceProvider::register public function Registers services to the container. Overrides ServiceProviderInterface::register