Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Class: advanced_test  - X-Ref

Test advanced_testcase extra features.

setUpBeforeClass()   X-Ref
No description

test_debugging()   X-Ref
No description

debugging_called_with_annotation()   X-Ref


test_set_user()   X-Ref
No description

test_set_admin_user()   X-Ref
No description

test_set_guest_user()   X-Ref
No description

test_database_reset()   X-Ref
No description

test_change_detection()   X-Ref
No description

test_getDataGenerator()   X-Ref
No description

test_database_mock1()   X-Ref
No description

test_database_mock2()   X-Ref
No description

test_load_data_dataset_xml()   X-Ref
No description

test_load_dataset_csv()   X-Ref
No description

test_load_dataset_array()   X-Ref
No description

test_assert_time_current()   X-Ref
No description

test_message_processors_reset()   X-Ref
No description

test_message_redirection()   X-Ref
No description

test_message_redirection_noreset($sink)   X-Ref


test_message_redirection_reset()   X-Ref


test_set_timezone()   X-Ref
No description

test_locale_reset()   X-Ref
No description

test_it_resets_useragent_after_test()   X-Ref
This test sets a user agent and makes sure that it is cleared when the test is reset.


test_runadhoctasks_no_tasks_queued()   X-Ref


test_runadhoctasks_tasks_queued()   X-Ref


test_runadhoctasks_with_existing_user_change()   X-Ref


test_runadhoctasks_with_existing_user_change_and_specified()   X-Ref