summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-02-19 00:19:58 +0000
committerDries Buytaert <dries@buytaert.net>2011-02-19 00:19:58 +0000
commit843a7cf3a55c619e954af1004dac8f94201c8ea5 (patch)
treed49ab4edffc2b3304caf392c784df33537d62dd2 /modules
parent8813c4cc5198729efc302c724c244c110090eb87 (diff)
downloadbrdo-843a7cf3a55c619e954af1004dac8f94201c8ea5.tar.gz
brdo-843a7cf3a55c619e954af1004dac8f94201c8ea5.tar.bz2
- Patch #1064264 by rfray: get the tests ready for the Great Git Migration.
Diffstat (limited to 'modules')
-rw-r--r--modules/simpletest/tests/error.test13
1 files changed, 5 insertions, 8 deletions
diff --git a/modules/simpletest/tests/error.test b/modules/simpletest/tests/error.test
index fdaab2bb8..fdc060a48 100644
--- a/modules/simpletest/tests/error.test
+++ b/modules/simpletest/tests/error.test
@@ -25,21 +25,18 @@ class DrupalErrorHandlerUnitTest extends DrupalWebTestCase {
'%type' => 'Notice',
'!message' => 'Undefined variable: bananas',
'%function' => 'error_test_generate_warnings()',
- '%line' => 44,
'%file' => drupal_realpath('modules/simpletest/tests/error_test.module'),
);
$error_warning = array(
'%type' => 'Warning',
'!message' => 'Division by zero',
'%function' => 'error_test_generate_warnings()',
- '%line' => 46,
'%file' => drupal_realpath('modules/simpletest/tests/error_test.module'),
);
$error_user_notice = array(
'%type' => 'User warning',
'!message' => 'Drupal is awesome',
'%function' => 'error_test_generate_warnings()',
- '%line' => 48,
'%file' => drupal_realpath('modules/simpletest/tests/error_test.module'),
);
@@ -97,7 +94,7 @@ class DrupalErrorHandlerUnitTest extends DrupalWebTestCase {
// 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);
+ $error_details = t('in %function (line ', $error_pdo_exception);
$this->assertRaw($error_details, t("Found '!message' in error page.", array('!message' => $error_details)));
}
@@ -105,16 +102,16 @@ class DrupalErrorHandlerUnitTest extends DrupalWebTestCase {
* Helper function: assert that the error message is found.
*/
function assertErrorMessage(array $error) {
- $message = t('%type: !message in %function (line %line of %file).', $error);
- $this->assertRaw($message, t('Error !message found.', array('!message' => $message)));
+ $message = t('%type: !message in %function (line ', $error);
+ $this->assertRaw($message, t('Found error message: !message.', array('!message' => $message)));
}
/**
* Helper function: assert that the error message is not found.
*/
function assertNoErrorMessage(array $error) {
- $message = t('%type: !message in %function (line %line of %file).', $error);
- $this->assertNoRaw($message, t('Error !message not found.', array('!message' => $message)));
+ $message = t('%type: !message in %function (line ', $error);
+ $this->assertNoRaw($message, t('Did not find error message: !message.', array('!message' => $message)));
}
}