| [ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Quiz events tests.
| Copyright: | 2013 Adrian Greeve |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 408 lines (16 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
mod_quiz_structure_testcase:: (8 methods):
prepare_quiz_data()
test_get_quiz_slots()
test_get_quiz_sections()
assert_quiz_layout()
test_move_slot()
test_quiz_remove_slot()
test_update_page_break()
add_eight_questions_to_the_quiz()
Class: mod_quiz_structure_testcase - X-Ref
Unit tests for quiz events.| prepare_quiz_data() X-Ref |
| Prepare the quiz object with standard data. Ready for testing. |
| test_get_quiz_slots() X-Ref |
| Test getting the quiz slots. |
| test_get_quiz_sections() X-Ref |
| Test getting the quiz sections. |
| assert_quiz_layout($expectedlayout, \mod_quiz\structure $structure) X-Ref |
| Verify that the given layout matches that expected. param: array $expectedlayout param: \mod_quiz\structure $structure |
| test_move_slot() X-Ref |
| Test moving slots in the quiz. |
| test_quiz_remove_slot() X-Ref |
| Test removing slots from a quiz. |
| test_update_page_break() X-Ref |
| Test updating pagebreaks in the quiz. |
| add_eight_questions_to_the_quiz($quiz) X-Ref |
| Populate quiz with eight questions. param: stdClass $quiz the quiz to add to. |
| Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |