Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 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 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

Calendar event exporter tests tests.

Copyright: 2017 Ryan Wyllie <ryan@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 311 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 calendar/tests/helpers.php

Defines 1 class


Class: core_calendar_event_exporter_testcase  - X-Ref

Calendar event exporter testcase.

get_timestamp_min_limit_test_cases()   X-Ref
Data provider for the timestamp min limit test case to confirm
that the minimum time limit is set correctly on the boundary cases.


test_get_timestamp_min_limit($starttime, $min, $expected)   X-Ref


get_timestamp_max_limit_test_cases()   X-Ref
Data provider for the timestamp max limit test case to confirm
that the maximum time limit is set correctly on the boundary cases.


test_get_timestamp_max_limit($starttime, $max, $expected)   X-Ref


test_calendar_event_exporter_course_url_course_event()   X-Ref
Exporting a course event should generate the course URL.


test_calendar_event_exporter_course_url_user_event()   X-Ref
Exporting a user event should generate the site course URL.


test_calendar_event_exporter_popupname_course_shortname_strips_links()   X-Ref
Popup name respects filters for course shortname.


test_calendar_event_exporter_exports_course()   X-Ref
Exported event contains the exported course.