[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/tests/ -> questionlib_test.php (summary)

Unit tests for (some of) ../questionlib.php.

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

Defines 1 class

core_questionlib_testcase:: (12 methods):
  setUp()
  provider_feedback()
  setup_quiz_and_questions()
  test_question_reorder_qtypes()
  test_match_grade_options()
  test_altering_tag_instance_context()
  test_question_category_delete_safe()
  test_question_delete_activity()
  test_question_delete_context()
  test_question_delete_course()
  test_question_delete_course_category()
  test_question_remove_stale_questions_from_category()


Class: core_questionlib_testcase  - X-Ref

Unit tests for (some of) ../questionlib.php.

setUp()   X-Ref
Test set up.

This is executed before running any test in this file.

provider_feedback()   X-Ref
Return true and false to test functions with feedback on and off.

return: array Test data

setup_quiz_and_questions($type = 'module')   X-Ref
Setup a course, a quiz, a question category and a question for testing.

param: string $type The type of question category to create.
return: array The created data objects

test_question_reorder_qtypes()   X-Ref
No description

test_match_grade_options()   X-Ref
No description

test_altering_tag_instance_context()   X-Ref
This function tests that the functions responsible for moving questions to
different contexts also updates the tag instances associated with the questions.


test_question_category_delete_safe()   X-Ref
This function tests the question_category_delete_safe function.


test_question_delete_activity($feedback)   X-Ref
This function tests the question_delete_activity function.

param: bool $feedback Whether to return feedback

test_question_delete_context()   X-Ref
This function tests the question_delete_context function.


test_question_delete_course($feedback)   X-Ref
This function tests the question_delete_course function.

param: bool $feedback Whether to return feedback

test_question_delete_course_category($feedback)   X-Ref
This function tests the question_delete_course_category function.

param: bool $feedback Whether to return feedback

test_question_remove_stale_questions_from_category()   X-Ref
No description



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1