summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/error.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/tests/error.test')
-rw-r--r--modules/simpletest/tests/error.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/simpletest/tests/error.test b/modules/simpletest/tests/error.test
index 8584e2a40..ed430bfff 100644
--- a/modules/simpletest/tests/error.test
+++ b/modules/simpletest/tests/error.test
@@ -78,7 +78,7 @@ class DrupalErrorHandlerUnitTest extends DrupalWebTestCase {
);
$error_pdo_exception = array(
'%type' => 'PDOException',
- '%message' => 'SQLSTATE',
+ '%message' => 'SELECT * FROM bananas_are_awesome',
'%function' => 'error_test_trigger_pdo_exception()',
'%line' => 65,
'%file' => realpath('modules/simpletest/tests/error_test.module'),
@@ -89,7 +89,7 @@ class DrupalErrorHandlerUnitTest extends DrupalWebTestCase {
$this->drupalGet('error-test/trigger-pdo-exception');
// We cannot use assertErrorMessage() since the extact error reported
- // varies from database to database. Check for the error keyword 'SQLSTATE'.
+ // varies from database to database. Check that the SQL string is displayed.
$this->assertText($error_pdo_exception['%type'], t('Found %type in error page.', $error_pdo_exception));
$this->assertText($error_pdo_exception['%message'], t('Found %message in error page.', $error_pdo_exception));
$error_details = t('in %function (line %line of %file)', $error_pdo_exception);