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.

Class: unitofwork_test  - X-Ref

Unit tests for the {@link question_engine_unit_of_work} class.

setUp()   X-Ref
No description

tearDown()   X-Ref
No description

setup_initial_test_state($testdata)   X-Ref
No description

get_test_data()   X-Ref
No description

test_initial_state()   X-Ref
No description

test_update_usage()   X-Ref
No description

test_add_question()   X-Ref
No description

test_add_and_start_question()   X-Ref
No description

test_process_action()   X-Ref
No description

test_regrade_same_steps()   X-Ref
No description

test_regrade_losing_steps()   X-Ref
No description

test_tricky_regrade()   X-Ref
No description

test_move_question()   X-Ref
No description

test_move_question_then_modify()   X-Ref
No description

test_move_question_then_move_again()   X-Ref
No description

test_set_max_mark()   X-Ref
No description

test_set_question_attempt_metadata()   X-Ref
No description

test_set_question_attempt_metadata_then_change()   X-Ref
No description

test_set_metadata_previously_set_but_dont_actually_change()   X-Ref
No description

test_set_metadata_previously_set()   X-Ref
No description

test_set_metadata_in_new_question()   X-Ref
No description

test_set_metadata_then_move()   X-Ref
No description

test_move_then_set_metadata()   X-Ref
No description