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 310 and 311] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

Unit tests for the {@link \mod_quiz\repaginate} class.

Copyright: 2014 The Open Univsersity
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 299 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes


Class: mod_quiz_repaginate_testable  - X-Ref

Testable subclass, giving access to the protected methods of {@link \mod_quiz\repaginate}

__construct($quizid = 0, $slots = null)   X-Ref
No description

get_this_slot($slots, $slotnumber)   X-Ref
No description

get_slots_by_slotid($slots = null)   X-Ref
No description

get_slots_by_slot_number($slots = null)   X-Ref
No description

repaginate_this_slot($slot, $newpagenumber)   X-Ref
No description

repaginate_next_slot($nextslotnumber, $type)   X-Ref
No description

Class: repaginate_test  - X-Ref

Test for some parts of the repaginate class.

setUp()   X-Ref
No description

tearDown()   X-Ref
No description

get_quiz_object()   X-Ref
Create a quiz, add five questions to the quiz
which are all on one page and return the quiz object.


set_quiz_slots($slots = null)   X-Ref
Set the quiz slots

param: string $slots

test_get_this_slot()   X-Ref
Test the get_this_slot() method


test_get_slots_by_slotnumber()   X-Ref
No description

test_get_slots_by_slotid()   X-Ref
No description

test_repaginate_n_questions_per_page()   X-Ref
No description

test_repaginate_this_slot()   X-Ref
No description

test_repaginate_the_rest()   X-Ref
No description