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.

Class: analytics_model_testcase  - X-Ref

Unit tests for the model.

setUp()   X-Ref
No description

test_enable()   X-Ref
No description

test_create()   X-Ref
No description

test_delete()   X-Ref
test_delete


test_clear()   X-Ref
test_clear


test_clear_static()   X-Ref
Test behaviour of {\core_analytics\model::clear()} for static models.


test_model_manager()   X-Ref
No description

test_output_dir()   X-Ref
No description

test_unique_id()   X-Ref
No description

test_exists()   X-Ref
test_exists

return: void

test_model_timelimit()   X-Ref
test_model_timelimit

return: null

test_model_config_get_class_component()   X-Ref
Test model_config::get_class_component.


test_import_model_config()   X-Ref
Test that import_model import models' configurations.


test_can_export_configuration()   X-Ref
Test can export configuration


test_export_config()   X-Ref
Test export_config


test_inplace_editable_name()   X-Ref
Test the implementation of {@link \core_analytics\model::inplace_editable_name()}.


test_get_name_and_rename()   X-Ref
Test how the models present themselves in the UI and that they can be renamed.


test_potential_timesplittings()   X-Ref
Tests model::get_potential_timesplittings()


test_get_samples()   X-Ref
Tests model::get_samples()

return: null

add_fake_log()   X-Ref
Generates a model log record.


Class: testable_model  - X-Ref

Testable version to change methods' visibility.

init_analyser($options = array()   X-Ref
init_analyser

param: array $options
return: void