1 error.test BackdropErrorHandlerUnitTest::assertErrorMessage(array $error)

Helper function: assert that the error message is found.

File

core/modules/simpletest/tests/error.test, line 100

Class

BackdropErrorHandlerUnitTest
Tests Backdrop error and exception handlers.

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)));
}