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 400 and 403] [Versions 401 and 403] [Versions 402 and 403]

(no description)

File Size: 224 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: helper_test  - X-Ref

Bulk move helper tests.

helper_setup()   X-Ref
Setup the test.


count_category_questions(string $categoryid, array $questionids)   X-Ref
Count how many questions in the list belong to the given category.

param: string $categoryid a category id
param: array $questionids list of question ids
return: int

assert_category_contains_questions(string $categoryid, array $questionids)   X-Ref
Assert that the given category contains following questions

param: string $categoryid a category id
param: array $questionids list of question ids
return: void

assert_category_does_not_contain_questions(string $categoryid, array $questionids)   X-Ref
Assert that the given category does not contain following questions

param: string $categoryid a category id
param: array $questionids list of question ids
return: void

test_bulk_move_questions()   X-Ref
Test bulk move of questions.


process_question_ids_test()   X-Ref
Test the question processing and return the question list.

return: mixed

test_get_displaydata()   X-Ref
Test the question displaydata.