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.

Differences Between: [Versions 311 and 403] [Versions 400 and 403] [Versions 401 and 403]

(no description)

File Size: 385 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 3 files
 lib/enrollib.php
 analytics/tests/fixtures/test_timesplitting_upcoming_seconds.php
 analytics/tests/fixtures/test_timesplitting_seconds.php

Defines 1 class

time_splittings_test:: (6 methods):
  setUp()
  test_valid_ranges()
  test_range_dates()
  test_ready_predict()
  test_periodic()
  mock_cache_first_analysis_caching()


Class: time_splittings_test  - X-Ref

Unit tests for core time splitting methods.

setUp()   X-Ref
setUp

return: void

test_valid_ranges()   X-Ref
test_ranges

return: void

test_range_dates()   X-Ref
test_range_dates

return: void

test_ready_predict()   X-Ref
test_ready_predict

return: void

test_periodic()   X-Ref
test_periodic

return: void

mock_cache_first_analysis_caching($modelid, $analysableid, $range)   X-Ref
Mocks core_analytics\analysis caching of the first time analysables were analysed.

param: int $modelid
param: int $analysableid
param: array $range
return: null