Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Class: core_phpunit_advanced_testcase  - 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_dataset()   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