Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 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