Differences Between: [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]
(no description)
File Size: | 373 lines (17 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
version_test:: (10 methods):
setUp()
tearDown()
test_make_question_create_version_and_bank_entry()
test_delete_question_delete_versions()
test_delete_question_in_use()
test_move_category_with_questions()
test_id_number_in_bank_entry()
test_get_all_versions_of_question()
test_get_all_versions_of_questions()
test_populate_definition_latestversions()
Class: version_test - X-Ref
Question version unit tests.setUp() X-Ref |
Called before every test. |
tearDown() X-Ref |
No description |
test_make_question_create_version_and_bank_entry() X-Ref |
Test if creating a question a new version and bank entry records are created. |
test_delete_question_delete_versions() X-Ref |
Test if deleting a question the related version and bank entry records are deleted. |
test_delete_question_in_use() X-Ref |
Test if deleting a question will not break a quiz. |
test_move_category_with_questions() X-Ref |
Test if moving a category will not break a quiz. |
test_id_number_in_bank_entry() X-Ref |
Test that all versions will have the same bank entry idnumber value. |
test_get_all_versions_of_question() X-Ref |
Test that all the versions are available from the method. |
test_get_all_versions_of_questions() X-Ref |
Test that all the versions of questions are available from the method. |
test_populate_definition_latestversions() X-Ref |
Test population of latestversion field in question_definition objects When an instance of question_definition is created, it is added to an array of pending definitions which do not yet have the latestversion field populated. When one definition has its latestversion property accessed, all pending definitions have their latestversion field populated at once. return: void |