Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3b9635db
Commit
3b9635db
authored
May 26, 2010
by
Dries Buytaert
Browse files
- Patch
#714964
by mr.baileys: ActionLoopTestCase was fragile on some databases.
parent
2d2ff0d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/simpletest/tests/actions.test
View file @
3b9635db
...
...
@@ -81,7 +81,7 @@ class ActionLoopTestCase extends DrupalWebTestCase {
}
/**
* Set up a loop with
10-50
recursions, and see if it aborts properly.
* Set up a loop with
3 - 12
recursions, and see if it aborts properly.
*/
function
testActionLoop
()
{
$user
=
$this
->
drupalCreateUser
(
array
(
'administer actions'
));
...
...
@@ -116,10 +116,9 @@ class ActionLoopTestCase extends DrupalWebTestCase {
}
$expected
[]
=
'Stack overflow: too many calls to actions_do(). Aborting to prevent infinite recursion.'
;
$result
=
db_query
(
"SELECT
*
FROM
{
watchdog
}
WHERE type = 'actions_loop_test' OR type = 'actions' ORDER BY
timestamp
"
);
$result
=
db_query
(
"SELECT
message
FROM
{
watchdog
}
WHERE type = 'actions_loop_test' OR type = 'actions' ORDER BY
wid
"
);
$loop_started
=
FALSE
;
foreach
(
$result
as
$row
)
{
$expected_message
=
array_shift
(
$expected
);
$this
->
assertEqual
(
$row
->
message
,
$expected_message
,
t
(
'Expected message %expected, got %message.'
,
array
(
'%expected'
=>
$expected_message
,
'%message'
=>
$row
->
message
)));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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