function ErrorHandlerTest::assertNoErrorMessage

Helper function: assert that the error message is not found.

1 call to ErrorHandlerTest::assertNoErrorMessage()
ErrorHandlerTest::testErrorHandler in drupal/core/modules/system/lib/Drupal/system/Tests/System/ErrorHandlerTest.php
Test the error handler.

File

drupal/core/modules/system/lib/Drupal/system/Tests/System/ErrorHandlerTest.php, line 137
Definition of Drupal\system\Tests\System\ErrorHandlerTest.

Class

ErrorHandlerTest
Tests error and exception handlers.

Namespace

Drupal\system\Tests\System

Code

function assertNoErrorMessage(array $error) {
  $message = t('%type: !message in %function (line ', $error);
  $this
    ->assertNoRaw($message, format_string('Did not find error message: !message.', array(
    '!message' => $message,
  )));
}