You are here

protected function FixtureBase::resetContainer in Lightning Core 8.3

Same name and namespace in other branches
  1. 8.5 tests/src/FixtureBase.php \Drupal\Tests\lightning_core\FixtureBase::resetContainer()
  2. 8.4 tests/src/FixtureBase.php \Drupal\Tests\lightning_core\FixtureBase::resetContainer()

Updates the container.

1 call to FixtureBase::resetContainer()
FixtureBase::installModule in tests/src/FixtureBase.php
Installs a module if not already present.

File

tests/src/FixtureBase.php, line 178

Class

FixtureBase
Base class for contexts which set up and tear down a complete test fixture.

Namespace

Drupal\Tests\lightning_core

Code

protected function resetContainer() {
  $container = $this->container
    ->get('kernel')
    ->getContainer();
  $this
    ->setContainer($container);
}