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.

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