Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 39 and 311]

Repeat event collection tests.

Copyright: 2017 Ryan Wyllie <ryan@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 216 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

repeat_event_collection_test:: (5 methods):
  test_parent_id_no_repeat_id()
  test_parent_id_and_repeat_id()
  test_empty_collection()
  test_values_collection()
  create_event()

core_calendar_repeat_event_collection_event_test_factory:: (1 method):
  create_instance()


Class: repeat_event_collection_test  - X-Ref

Repeat event collection tests.

test_parent_id_no_repeat_id()   X-Ref
Test that the collection id is set to the parent id if the repeat id
is falsey.


test_parent_id_and_repeat_id()   X-Ref
Test that the repeat id is set to the parent id if the repeat id
is not falsey (even if the parent id is provided).


test_empty_collection()   X-Ref
Test that an empty collection is valid.


test_values_collection()   X-Ref
Test that a collection with values behaves correctly.


create_event($properties = [])   X-Ref
Helper function to create calendar events using the old code.

param: array $properties A list of calendar event properties to set
return: calendar_event

Class: core_calendar_repeat_event_collection_event_test_factory  - X-Ref

Test event factory.

create_instance(\stdClass $dbrow)   X-Ref
No description