You are here

public function SecurityAdvisoriesFetcherTest::log in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Kernel/SecurityAdvisories/SecurityAdvisoriesFetcherTest.php \Drupal\Tests\system\Kernel\SecurityAdvisories\SecurityAdvisoriesFetcherTest::log()

File

core/modules/system/tests/src/Kernel/SecurityAdvisories/SecurityAdvisoriesFetcherTest.php, line 744

Class

SecurityAdvisoriesFetcherTest
@coversDefaultClass \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher

Namespace

Drupal\Tests\system\Kernel\SecurityAdvisories

Code

public function log($level, $message, array $context = []) : void {
  if (isset($context['@message'])) {
    $this->watchdogExceptionMessages[] = $context['@message'];
  }
  if ($level === RfcLogLevel::ERROR) {
    $this->logErrorMessages[] = $message;
  }
}