You are here

protected function MonitoringPastTest::setUp in Monitoring 8

Overrides MonitoringUnitTestBase::setUp

File

tests/src/Kernel/MonitoringPastTest.php, line 24
Contains \Drupal\Tests\monitoring\Kernel\MonitoringPastTest.

Class

MonitoringPastTest
Tests for the past sensors in monitoring.

Namespace

Drupal\Tests\monitoring\Kernel

Code

protected function setUp() {
  parent::setUp();

  // Install the past entities and tables.
  $this
    ->installEntitySchema('past_event');
  $this
    ->installSchema('past_db', array(
    'past_event_argument',
    'past_event_data',
  ));
  $this
    ->installConfig([
    'system',
  ]);
  \Drupal::service('router.builder')
    ->rebuild();
}