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]

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: 213 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

core_calendar_repeat_event_collection_testcase:: (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: core_calendar_repeat_event_collection_testcase  - 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