Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 379 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 3 files
 analytics/tests/fixtures/test_timesplitting_seconds.php
 lib/enrollib.php
 analytics/tests/fixtures/test_timesplitting_upcoming_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