Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 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.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]

PHPUnit integration tests

Copyright: 2012 Petr Skoda {@link http://skodak.org}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 710 lines (28 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: core_phpunit_advanced_testcase  - X-Ref

Test advanced_testcase extra features.

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.