Skip to content
Snippets Groups Projects
Commit 54758e50 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1817144 by kbasarab, jhodgdon: Fixed Some test assertions are inconsistent with the others.

parent a56f7110
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment