You are here

class TestServiceProvider in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/simpletest/src/TestServiceProvider.php \Drupal\simpletest\TestServiceProvider

Hierarchy

Expanded class hierarchy of TestServiceProvider

File

core/modules/simpletest/src/TestServiceProvider.php, line 13
Contains \Drupal\simpletest\TestServiceProvider.

Namespace

Drupal\simpletest
View source
class TestServiceProvider implements ServiceProviderInterface {

  /**
   * @var \Drupal\simpletest\TestBase;
   */
  public static $currentTest;

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

}

Members