function ErrorHandlerTest::assertErrorMessage

Helper function: assert that the error message is found.

2 calls to ErrorHandlerTest::assertErrorMessage()
ErrorHandlerTest::testErrorHandler in drupal/core/modules/system/lib/Drupal/system/Tests/System/ErrorHandlerTest.php
Test the error handler.
ErrorHandlerTest::testExceptionHandler in drupal/core/modules/system/lib/Drupal/system/Tests/System/ErrorHandlerTest.php
Test the exception handler.

File

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

Class

ErrorHandlerTest
Tests error and exception handlers.

Namespace

Drupal\system\Tests\System

Code

function assertErrorMessage(array $error) {
  $message = t('%type: !message in %function (line ', $error);
  $this
    ->assertRaw($message, format_string('Found error message: !message.', array(
    '!message' => $message,
  )));
}