[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Tests for the quiz_attempt class.
Copyright: | 2014 Tim Hunt |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 307 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
mod_quiz_attempt_testable:: (2 methods):
setup_fake_attempt_layout()
is_real_question()
mod_quiz_attempt_testcase:: (1 method):
test_attempt_url()
Class: mod_quiz_attempt_testable - X-Ref
Subclass of quiz_attempt to allow faking of the page layout.setup_fake_attempt_layout($id, $layout, $infos = array() X-Ref |
Set a fake page layout. Used when we test URL generation. param: int $id assumed attempt id. param: string $layout layout to set. Like quiz attempt.layout. E.g. '1,2,0,3,4,0,'. param: array $infos slot numbers which contain 'descriptions', or other non-questions. return: quiz_attempt attempt object for use in unit tests. |
is_real_question($slot) X-Ref |
No description |
Class: mod_quiz_attempt_testcase - X-Ref
Tests for the quiz_attempt class.test_attempt_url() X-Ref |
Test the functions quiz_update_open_attempts() and get_list_of_overdue_attempts() |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |