Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 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 310]

Unit tests for core time splitting methods.

Copyright: 2017 David MonllaĆ³ {@link http://www.davidmonllao.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 383 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 3 files
 analytics/tests/fixtures/test_timesplitting_upcoming_seconds.php
 analytics/tests/fixtures/test_timesplitting_seconds.php
 lib/enrollib.php

Defines 1 class

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


Class: core_analytics_time_splittings_testcase  - 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