diff --git a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php index fdb819a..710c530 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php @@ -518,7 +518,7 @@ protected function assertNotIdentical($first, $second, $message = '', $group = ' * @return * TRUE if the assertion succeeded, FALSE otherwise. */ - protected function assertIdenticalObject($object1, $object2, $message = '', $group = '') { + protected function assertIdenticalObject($object1, $object2, $message = '', $group = 'Other') { $message = $message ?: format_string('!object1 is identical to !object2', array( '!object1' => var_export($object1, TRUE), '!object2' => var_export($object2, TRUE), @@ -527,7 +527,7 @@ protected function assertIdenticalObject($object1, $object2, $message = '', $gro foreach ($object1 as $key => $value) { $identical = $identical && isset($object2->$key) && $object2->$key === $value; } - return $this->assertTrue($identical, $message); + return $this->assertTrue($identical, $message, $group); } diff --git a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php index a62a9eb..54c6500 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php @@ -2205,7 +2205,7 @@ protected function assertNoText($text, $message = '', $group = 'Other') { * messages: use format_string() to embed variables in the message text, not * t(). If left blank, a default message will be displayed. * @param $group - * (optional) The group this message is in, which is displayed in a column + * The group this message is in, which is displayed in a column * in test output. Use 'Debug' to indicate this is debugging output. Do not * translate this string. Defaults to 'Other'; most tests do not override * this default. @@ -2286,7 +2286,7 @@ protected function assertNoUniqueText($text, $message = '', $group = 'Other') { * messages: use format_string() to embed variables in the message text, not * t(). If left blank, a default message will be displayed. * @param $group - * (optional) The group this message is in, which is displayed in a column + * The group this message is in, which is displayed in a column * in test output. Use 'Debug' to indicate this is debugging output. Do not * translate this string. Defaults to 'Other'; most tests do not override * this default. @@ -3021,7 +3021,7 @@ protected function assertMail($name, $value = '', $message = '', $group = 'E-mai * @return * TRUE on pass, FALSE on fail. */ - protected function assertMailString($field_name, $string, $email_depth, $message ='', $group = 'Other') { + protected function assertMailString($field_name, $string, $email_depth, $message = '', $group = 'Other') { $mails = $this->drupalGetMails(); $string_found = FALSE; for ($i = count($mails) -1; $i >= count($mails) - $email_depth && $i >= 0; $i--) {