public function ErrorHandlerTest::assertNoErrorMessage in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php \Drupal\Tests\system\Functional\System\ErrorHandlerTest::assertNoErrorMessage()
Helper function: assert that the error message is not found.
2 calls to ErrorHandlerTest::assertNoErrorMessage()
- ErrorHandlerTest::testErrorHandler in core/
modules/ system/ tests/ src/ Functional/ System/ ErrorHandlerTest.php - Test the error handler.
- ErrorHandlerTest::testExceptionHandler in core/
modules/ system/ tests/ src/ Functional/ System/ ErrorHandlerTest.php - Test the exception handler.
File
- core/
modules/ system/ tests/ src/ Functional/ System/ ErrorHandlerTest.php, line 163
Class
- ErrorHandlerTest
- Performs tests on the Drupal error and exception handler.
Namespace
Drupal\Tests\system\Functional\SystemCode
public function assertNoErrorMessage(array $error) {
$message = new FormattableMarkup('%type: @message in %function (line ', $error);
$this
->assertNoRaw($message, new FormattableMarkup('Did not find error message: @message.', [
'@message' => $message,
]));
}