function TestServiceProvider::alter

Overrides ServiceModifierInterface::alter

File

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

Class

TestServiceProvider
Provides special routing services for tests.

Namespace

Drupal\KernelTests

Code

public function alter(ContainerBuilder $container) {
    if (static::$currentTest instanceof KernelTestBase) {
        static::addRouteProvider($container);
    }
}

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