protected function ErrorHandlerTest::assertNoMessages in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php \Drupal\Tests\system\Functional\System\ErrorHandlerTest::assertNoMessages()
- 9 core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php \Drupal\Tests\system\Functional\System\ErrorHandlerTest::assertNoMessages()
Asserts that no messages are printed onto the page.
Ensures that no messages div exists, which proves that no messages were generated by the error handler, not even an empty one.
@internal
1 call to ErrorHandlerTest::assertNoMessages()
- ErrorHandlerTest::testErrorHandler in core/
modules/ system/ tests/ src/ Functional/ System/ ErrorHandlerTest.php - Tests the error handler.
File
- core/
modules/ system/ tests/ src/ Functional/ System/ ErrorHandlerTest.php, line 179
Class
- ErrorHandlerTest
- Performs tests on the Drupal error and exception handler.
Namespace
Drupal\Tests\system\Functional\SystemCode
protected function assertNoMessages() : void {
$this
->assertSession()
->elementNotExists('xpath', '//div[contains(@class, "messages")]');
}