function TestServiceProvider::register

Overrides ServiceProviderInterface::register

File

core/tests/Drupal/KernelTests/TestServiceProvider.php, line 23

Class

TestServiceProvider
Provides special routing services for tests.

Namespace

Drupal\KernelTests

Code

public function register(ContainerBuilder $container) {
    if (static::$currentTest && method_exists(static::$currentTest, 'containerBuild')) {
        static::$currentTest->containerBuild($container);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.