summaryrefslogtreecommitdiff
path: root/modules/simpletest/drupal_web_test_case.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-09-02 15:56:10 +0000
committerDries Buytaert <dries@buytaert.net>2010-09-02 15:56:10 +0000
commit679fdfcdd25ab9829834237f10f14bed41d99d3a (patch)
tree3c9f9e200d6d4608ad18b0472505293239086f89 /modules/simpletest/drupal_web_test_case.php
parentfb300d1f967d17a10678582f46e82bd133d23aae (diff)
downloadbrdo-679fdfcdd25ab9829834237f10f14bed41d99d3a.tar.gz
brdo-679fdfcdd25ab9829834237f10f14bed41d99d3a.tar.bz2
- Patch #161217 by sun, hingo: URL filter fixes and tests.
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r--modules/simpletest/drupal_web_test_case.php36
1 files changed, 18 insertions, 18 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 981554d97..945cbe9d0 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -412,6 +412,24 @@ abstract class DrupalTestCase {
}
/**
+ * Logs verbose message in a text file.
+ *
+ * The a link to the vebose message will be placed in the test results via
+ * as a passing assertion with the text '[verbose message]'.
+ *
+ * @param $message
+ * The verbose message to be stored.
+ *
+ * @see simpletest_verbose()
+ */
+ protected function verbose($message) {
+ if ($id = simpletest_verbose($message)) {
+ $url = file_create_url($this->originalFileDirectory . '/simpletest/verbose/' . get_class($this) . '-' . $id . '.html');
+ $this->error(l(t('Verbose message'), $url, array('attributes' => array('target' => '_blank'))), 'User notice');
+ }
+ }
+
+ /**
* Run all tests in this class.
*/
public function run() {
@@ -3071,24 +3089,6 @@ class DrupalWebTestCase extends DrupalTestCase {
$this->verbose(t('Email:') . '<pre>' . print_r($mail, TRUE) . '</pre>');
}
}
-
- /**
- * Logs verbose message in a text file.
- *
- * The a link to the vebose message will be placed in the test results via
- * as a passing assertion with the text '[verbose message]'.
- *
- * @param $message
- * The verbose message to be stored.
- *
- * @see simpletest_verbose()
- */
- protected function verbose($message) {
- if ($id = simpletest_verbose($message)) {
- $url = file_create_url($this->originalFileDirectory . '/simpletest/verbose/' . get_class($this) . '-' . $id . '.html');
- $this->error(l(t('Verbose message'), $url, array('attributes' => array('target' => '_blank'))), 'User notice');
- }
- }
}
/**