Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 166 lines (6 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

show_started_courses_task_test:: (2 methods):
  test_show_started_courses()
  get_courses_provider()


Class: show_started_courses_task_test  - X-Ref

Class containing unit tests for the show started courses task.

It automatically sets the course visibility to shown when the course start date matches the current day.

test_show_started_courses(int $lastweekhidden,int $yesterdayhidden,int $tomorrowhidden,bool $createvisible = true)   X-Ref
Test show_started_courses cron task.

param: int $lastweekhidden Number of courses with the start date set to last week to be created.
param: int $yesterdayhidden Number of courses with the start date set to yesterday to be created.
param: int $tomorrowhidden Number of courses with the start date set to tomorrow to be created.
param: bool $createvisible Whether visible courses should be created or not.

get_courses_provider()   X-Ref
Data provider for test_show_started_courses.

return: array