Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
315
Merge Requests
315
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
54758e50
Commit
54758e50
authored
Nov 13, 2012
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
129 additions
and
40 deletions
+129
-40
core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
+2
-2
core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
.../modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
+127
-38
No files found.
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