function DrupalErrorHandlerTestCase::assertErrorMessage
Helper function: assert that the error message is found.
4 calls to DrupalErrorHandlerTestCase::assertErrorMessage()
- DrupalErrorHandlerTestCase::testErrorHandler in drupal-7.x/
modules/ simpletest/ tests/ error.test - Test the error handler.
- DrupalErrorHandlerTestCase::testErrorHandler in drupal-7.x/
modules/ simpletest/ tests/ error.test - Test the error handler.
- DrupalErrorHandlerTestCase::testExceptionHandler in drupal-7.x/
modules/ simpletest/ tests/ error.test - Test the exception handler.
- DrupalErrorHandlerTestCase::testExceptionHandler in drupal-7.x/
modules/ simpletest/ tests/ error.test - Test the exception handler.
Archivo
- drupal-7.x/
modules/ simpletest/ tests/ error.test, line 103
Class
- DrupalErrorHandlerTestCase
- Tests Drupal error and exception handlers.
Código
function assertErrorMessage(array $error) {
$message = t('%type: !message in %function (line ', $error);
$this->assertRaw($message, format_string('Found error message: !message.', array('!message' => $message)));
}