You are here

protected function LogsHttpRegisterEventTest::setUp in Logs HTTP 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/LogsHttpRegisterEventTest.php, line 37

Class

LogsHttpRegisterEventTest
Test registration of an event.

Namespace

Drupal\Tests\logs_http\Kernel

Code

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

  // Installing needed schema.
  $this
    ->installConfig(static::$modules);

  // Setup the configuration.
  $this->logsHttpConfig = \Drupal::configFactory()
    ->getEditable('logs_http.settings');
  $this->logsHttpConfig
    ->set('url', 'http://www.example.com');
  $this->logsHttpConfig
    ->save();
  $this->logsHttpLogger = \Drupal::service('logs_http.logs_http_logger');
}