Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 311 and 403] [Versions 400 and 403]

(no description)

File Size: 242 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/tests/fixtures/task_fixtures.php

Defines 1 class

manager_test:: (2 methods):
  get_candidate_adhoc_tasks_provider()
  test_get_candidate_adhoc_tasks()


Class: manager_test  - X-Ref

This file contains the unit tests for the task manager.

get_candidate_adhoc_tasks_provider()   X-Ref
Data provider for test_get_candidate_adhoc_tasks.

return: array

test_get_candidate_adhoc_tasks(int $concurrencylimit,int $limit,array $pertasklimits,array $tasks,array $expected)   X-Ref
Test that the candidate adhoc tasks are returned in the right order.

param: int $concurrencylimit The max number of runners each task can consume
param: int $limit SQL limit
param: array $pertasklimits Per-task limits
param: array $tasks Array of tasks to put in DB and retrieve
param: array $expected Array of expected classnames
return: void