You are here

protected function KernelTestBase::refreshServices in Forms Steps 8

Refresh services.

2 calls to KernelTestBase::refreshServices()
KernelTestBase::installModule in tests/src/Kernel/KernelTestBase.php
Installs a module and refreshes services.
KernelTestBase::uninstallModule in tests/src/Kernel/KernelTestBase.php
Uninstalls a module and refreshes services.

File

tests/src/Kernel/KernelTestBase.php, line 162

Class

KernelTestBase
Defines an abstract test base for kernel tests.

Namespace

Drupal\Tests\forms_steps\Kernel

Code

protected function refreshServices() {
  $this->container = \Drupal::getContainer();
  $this->entityManager = $this->container
    ->get('entity_type.manager');
  $this->state = $this->container
    ->get('state');
}