You are here

protected function ServiceTest::initializeRequirementSeverities in Purge 8.3

Include install.inc and initialize $this->requirementSeverities.

2 calls to ServiceTest::initializeRequirementSeverities()
ServiceTest::testToMessageList in tests/src/Kernel/DiagnosticCheck/ServiceTest.php
Tests DiagnosticsService::toMessageList.
ServiceTest::testToRequirementsArray in tests/src/Kernel/DiagnosticCheck/ServiceTest.php
Tests DiagnosticsService::toRequirementsArray.

File

tests/src/Kernel/DiagnosticCheck/ServiceTest.php, line 86

Class

ServiceTest
Tests DiagnosticsService.

Namespace

Drupal\Tests\purge\Kernel\DiagnosticCheck

Code

protected function initializeRequirementSeverities() : void {
  if (empty($this->requirementSeverities)) {
    include_once DRUPAL_ROOT . '/core/includes/install.inc';
    $this->requirementSeverities[] = REQUIREMENT_INFO;
    $this->requirementSeverities[] = REQUIREMENT_OK;
    $this->requirementSeverities[] = REQUIREMENT_WARNING;
    $this->requirementSeverities[] = REQUIREMENT_ERROR;
  }
}