summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/batch.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/tests/batch.test')
-rw-r--r--modules/simpletest/tests/batch.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/simpletest/tests/batch.test b/modules/simpletest/tests/batch.test
index a3ace7b9e..65c5309ff 100644
--- a/modules/simpletest/tests/batch.test
+++ b/modules/simpletest/tests/batch.test
@@ -69,6 +69,8 @@ class BatchAPIPercentagesTestCase extends DrupalWebTestCase {
* testCases class variable.
*/
function testBatchAPIPercentages() {
+ // Include batch.inc if it's not already included.
+ drupal_function_exists('_batch_api_percentage');
foreach ($this->testCases as $expected_result => $arguments) {
// PHP sometimes casts numeric strings that are array keys to integers,
// cast them back here.
@@ -84,4 +86,4 @@ class BatchAPIPercentagesTestCase extends DrupalWebTestCase {
}
}
}
-}
+} \ No newline at end of file