[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Unit tests for the completion condition.
Copyright: | 2014 The Open University |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 412 lines (19 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
availability_completion_condition_testcase:: (8 methods):
setUp()
test_in_tree()
test_constructor()
test_save()
test_usage()
test_completion_value_used()
set_grade()
test_update_dependency_id()
Class: availability_completion_condition_testcase - X-Ref
Unit tests for the completion condition.setUp() X-Ref |
Load required classes. |
test_in_tree() X-Ref |
Tests constructing and using condition as part of tree. |
test_constructor() X-Ref |
Tests the constructor including error conditions. Also tests the string conversion feature (intended for debugging only). |
test_save() X-Ref |
Tests the save() function. |
test_usage() X-Ref |
Tests the is_available and get_description functions. |
test_completion_value_used() X-Ref |
Tests completion_value_used static function. |
set_grade($assignrow, $userid, $grade) X-Ref |
Updates the grade of a user in the given assign module instance. param: stdClass $assignrow Assignment row from database param: int $userid User id param: float $grade Grade |
test_update_dependency_id() X-Ref |
Tests the update_dependency_id() function. |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |