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

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