diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-06-08 06:16:01 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-06-08 06:16:01 +0000 |
commit | b87e57baafddead90092ced2904915a256a6b098 (patch) | |
tree | 9d33e918b11e440ccc7fa51becae6f48c3b75d69 /modules/simpletest/drupal_web_test_case.php | |
parent | 20223878e6d53b87eec4da417971b9b2390457f9 (diff) | |
download | brdo-b87e57baafddead90092ced2904915a256a6b098.tar.gz brdo-b87e57baafddead90092ced2904915a256a6b098.tar.bz2 |
- Patch #820166 by rfay: several simpletest assertions missing default value for .
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 34b78ded6..90929e77b 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -2451,7 +2451,7 @@ class DrupalWebTestCase extends DrupalTestCase { * @return * TRUE on pass, FALSE on fail. */ - protected function assertTextHelper($text, $message, $group, $not_exists) { + protected function assertTextHelper($text, $message = '', $group, $not_exists) { if ($this->plainTextContent === FALSE) { $this->plainTextContent = filter_xss($this->content, array()); } @@ -2517,7 +2517,7 @@ class DrupalWebTestCase extends DrupalTestCase { * @return * TRUE on pass, FALSE on fail. */ - protected function assertUniqueTextHelper($text, $message, $group, $be_unique) { + protected function assertUniqueTextHelper($text, $message = '', $group, $be_unique) { if ($this->plainTextContent === FALSE) { $this->plainTextContent = filter_xss($this->content, array()); } @@ -2583,7 +2583,7 @@ class DrupalWebTestCase extends DrupalTestCase { * @return * TRUE on pass, FALSE on fail. */ - protected function assertTitle($title, $message, $group = 'Other') { + protected function assertTitle($title, $message = '', $group = 'Other') { return $this->assertEqual(current($this->xpath('//title')), $title, $message, $group); } @@ -2599,7 +2599,7 @@ class DrupalWebTestCase extends DrupalTestCase { * @return * TRUE on pass, FALSE on fail. */ - protected function assertNoTitle($title, $message, $group = 'Other') { + protected function assertNoTitle($title, $message = '', $group = 'Other') { return $this->assertNotEqual(current($this->xpath('//title')), $title, $message, $group); } @@ -2617,7 +2617,7 @@ class DrupalWebTestCase extends DrupalTestCase { * @return * TRUE on pass, FALSE on fail. */ - protected function assertFieldByXPath($xpath, $value, $message, $group = 'Other') { + protected function assertFieldByXPath($xpath, $value, $message = '', $group = 'Other') { $fields = $this->xpath($xpath); // If value specified then check array for match. @@ -2689,7 +2689,7 @@ class DrupalWebTestCase extends DrupalTestCase { * @return * TRUE on pass, FALSE on fail. */ - protected function assertNoFieldByXPath($xpath, $value, $message, $group = 'Other') { + protected function assertNoFieldByXPath($xpath, $value, $message = '', $group = 'Other') { $fields = $this->xpath($xpath); // If value specified then check array for match. |