Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Various fixture course formats for backup unit tests

Copyright: 2022 onwards Eloy Lafuente (stronk7) {@link https://stronk7.com}
License: https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 82 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

format_test_cs_options:: (2 methods):
  get_default_section_name()
  section_format_options()

format_test_cs2_options:: (1 method):
  section_format_options()


Class: format_test_cs_options  - X-Ref

Fixture course format with one option.

get_default_section_name($section)   X-Ref
Override method format_topics::get_default_section_name to prevent PHPUnit errors related to the nonexistent
format_test_cs_options lang file.

param: \stdClass $section The section in question.
return: string The section's name for display.

section_format_options($foreditform = false)   X-Ref
No description

Class: format_test_cs2_options  - X-Ref

Fixture course format with 2 options, 1 inherited.

section_format_options($foreditform = false)   X-Ref
No description