Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

(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