Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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

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.

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

Class: core_calendar_repeat_event_collection_event_test_factory  - X-Ref

Test event factory.

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