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 |
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 |