You are here

protected function MonitoringUnitTestBase::setUp in Monitoring 8

Overrides KernelTestBase::setUp

7 calls to MonitoringUnitTestBase::setUp()
MonitoringApiTest::setUp in tests/src/Kernel/MonitoringApiTest.php
MonitoringCoreKernelTest::setUp in tests/src/Kernel/MonitoringCoreKernelTest.php
MonitoringCronErrorPluginTest::setup in tests/src/Kernel/MonitoringCronErrorPluginTest.php
MonitoringMailKernelTest::setUp in modules/monitoring_mail/tests/src/Kernel/MonitoringMailKernelTest.php
MonitoringPastTest::setUp in tests/src/Kernel/MonitoringPastTest.php

... See full list

6 methods override MonitoringUnitTestBase::setUp()
MonitoringApiTest::setUp in tests/src/Kernel/MonitoringApiTest.php
MonitoringCoreKernelTest::setUp in tests/src/Kernel/MonitoringCoreKernelTest.php
MonitoringMailKernelTest::setUp in modules/monitoring_mail/tests/src/Kernel/MonitoringMailKernelTest.php
MonitoringPastTest::setUp in tests/src/Kernel/MonitoringPastTest.php
MonitoringRedirect404SensorTest::setUp in tests/src/Kernel/MonitoringRedirect404SensorTest.php

... See full list

File

tests/src/Kernel/MonitoringUnitTestBase.php, line 21
Contains \Drupal\monitoring\Tests\MonitoringTestBase.

Class

MonitoringUnitTestBase
Base class for all monitoring unit tests.

Namespace

Drupal\Tests\monitoring\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('monitoring_sensor_result');
  $this
    ->installConfig(array(
    'monitoring',
    'monitoring_test',
  ));

  // Ensure that the sensor runner will use the correct configuration, might
  // have been instantiated before the config was fully saved.
  $this->container
    ->set('monitoring.sensor_runner', NULL);
}