You are here

public function ContainerAwarePluginManagerTest::setUp in Service Container 7

Same name and namespace in other branches
  1. 7.2 tests/src/Plugin/ContainerAwarePluginManagerTest.php \Drupal\Tests\service_container\Plugin\ContainerAwarePluginManagerTest::setUp()

File

tests/src/Plugin/ContainerAwarePluginManagerTest.php, line 25
Contains \Drupal\Tests\service_container\Plugin\ContainerAwarePluginManagerTest

Class

ContainerAwarePluginManagerTest
@coversDefaultClass \Drupal\service_container\Plugin\ContainerAwarePluginManager @group dic

Namespace

Drupal\Tests\service_container\Plugin

Code

public function setUp() {
  $this->containerDefinition = $this
    ->getContainerDefinition();
  $this->container = new Container($this->containerDefinition);
  $this->controllerPluginManager = $this->container
    ->get('service_container.controller');
}