Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

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: 293 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

Test for {@see \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

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