Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
54758e50
Commit
54758e50
authored
Nov 13, 2012
by
webchick
Browse files
Issue
#1817144
by kbasarab, jhodgdon: Fixed Some test assertions are inconsistent with the others.
parent
a56f7110
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
View file @
54758e50
...
...
@@ -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
);
}
...
...
core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
View file @
54758e50
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment