You are here

protected function ServiceContainerIntegrationTestBase::setUp in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/service_container/Tests/ServiceContainerIntegrationTestBase.php \Drupal\service_container\Tests\ServiceContainerIntegrationTestBase::setUp()
5 calls to ServiceContainerIntegrationTestBase::setUp()
LoggerIntegrationTest::setUp in lib/Drupal/service_container/Tests/LoggerIntegrationTest.php
ServiceContainerAnnotationDiscoveryIntegrationTest::setUp in modules/providers/service_container_annotation_discovery/lib/Drupal/service_container_annotation_discovery/Tests/ServiceContainerAnnotationDiscoveryIntegrationTest.php
ServiceContainerCToolsIntegrationTest::setUp in lib/Drupal/service_container/Tests/ServiceContainerCToolsIntegrationTest.php
ServiceContainerSymfonyTest::setUp in modules/providers/service_container_symfony/lib/Drupal/service_container_symfony/Tests/ServiceContainerSymfonyTest.php
StorageTestBase::setUp in lib/Drupal/service_container/Tests/KeyValue/StorageTestBase.php
5 methods override ServiceContainerIntegrationTestBase::setUp()
LoggerIntegrationTest::setUp in lib/Drupal/service_container/Tests/LoggerIntegrationTest.php
ServiceContainerAnnotationDiscoveryIntegrationTest::setUp in modules/providers/service_container_annotation_discovery/lib/Drupal/service_container_annotation_discovery/Tests/ServiceContainerAnnotationDiscoveryIntegrationTest.php
ServiceContainerCToolsIntegrationTest::setUp in lib/Drupal/service_container/Tests/ServiceContainerCToolsIntegrationTest.php
ServiceContainerSymfonyTest::setUp in modules/providers/service_container_symfony/lib/Drupal/service_container_symfony/Tests/ServiceContainerSymfonyTest.php
StorageTestBase::setUp in lib/Drupal/service_container/Tests/KeyValue/StorageTestBase.php

File

lib/Drupal/service_container/Tests/ServiceContainerIntegrationTestBase.php, line 29
Contains \Drupal\service_container\Tests\ServiceContainerIntegrationTestBase.

Class

ServiceContainerIntegrationTestBase

Namespace

Drupal\service_container\Tests

Code

protected function setUp() {

  // Support both an array of modules and a single module.
  $modules = func_get_args();
  if (isset($modules[0]) && is_array($modules[0])) {
    $modules = $modules[0];
  }
  $modules[] = 'service_container';
  parent::setUp($modules);
  \ServiceContainer::init();
  $this->container = \Drupal::getContainer();
}