function SecurityAdvisoriesFetcherTest::assertServiceAdvisoryLoggedErrors
Same name in other branches
- 10 core/modules/system/tests/src/Kernel/SecurityAdvisories/SecurityAdvisoriesFetcherTest.php \Drupal\Tests\system\Kernel\SecurityAdvisories\SecurityAdvisoriesFetcherTest::assertServiceAdvisoryLoggedErrors()
- 11.x core/modules/system/tests/src/Kernel/SecurityAdvisories/SecurityAdvisoriesFetcherTest.php \Drupal\Tests\system\Kernel\SecurityAdvisories\SecurityAdvisoriesFetcherTest::assertServiceAdvisoryLoggedErrors()
Asserts the expected error messages were logged.
@internal
Parameters
string[] $expected_messages: The expected error messages.
1 call to SecurityAdvisoriesFetcherTest::assertServiceAdvisoryLoggedErrors()
- SecurityAdvisoriesFetcherTest::testInvalidJsonResponse in core/
modules/ system/ tests/ src/ Kernel/ SecurityAdvisories/ SecurityAdvisoriesFetcherTest.php - Tests that invalid JSON feed responses are not stored.
File
-
core/
modules/ system/ tests/ src/ Kernel/ SecurityAdvisories/ SecurityAdvisoriesFetcherTest.php, line 736
Class
- SecurityAdvisoriesFetcherTest
- @coversDefaultClass \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher
Namespace
Drupal\Tests\system\Kernel\SecurityAdvisoriesCode
protected function assertServiceAdvisoryLoggedErrors(array $expected_messages) : void {
$this->assertSame($expected_messages, $this->logErrorMessages);
$this->logErrorMessages = [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.