Moodle  2.2.1
http://www.collinsharper.com
grade_category_test Class Reference
Inheritance diagram for grade_category_test:
Collaboration diagram for grade_category_test:

Public Member Functions

 __construct ()
 __destruct ()
 test_grade_category ()
 sub_test_grade_category_construct ()
 sub_test_grade_category_build_path ()
 sub_test_grade_category_fetch ()
 sub_test_grade_category_fetch_all ()
 sub_test_grade_category_update ()
 sub_test_grade_category_delete ()
 sub_test_grade_category_insert ()
 sub_test_grade_category_qualifies_for_regrading ()
 sub_test_grade_category_force_regrading ()
 sub_test_grade_category_generate_grades ()
 helper_test_grade_agg_method ($grade_category, $grade_items, $grade_grades, $aggmethod, $aggmethodname, $correct1, $correct2)
 helper_test_grade_aggregation_result ($grade_category, $correctgrade, $msg)
 sub_test_grade_category_aggregate_grades ()
 sub_test_grade_category_apply_limit_rules ()
 sub_test_grade_category_is_aggregationcoef_used ()
 sub_test_grade_category_fetch_course_tree ()
 sub_test_grade_category_get_children ()
 sub_test_grade_category_load_grade_item ()
 sub_test_grade_category_get_grade_item ()
 sub_test_grade_category_load_parent_category ()
 sub_test_grade_category_get_parent_category ()
 sub_test_grade_category_get_name ()
 sub_test_grade_category_set_parent ()
 sub_test_grade_category_get_final ()
 sub_test_grade_category_get_sortorder ()
 sub_test_grade_category_set_sortorder ()
 sub_test_grade_category_move_after_sortorder ()
 sub_test_grade_category_is_course_category ()
 sub_test_grade_category_fetch_course_category ()
 sub_test_grade_category_is_editable ()
 sub_test_grade_category_is_locked ()
 sub_test_grade_category_set_locked ()
 sub_test_grade_category_is_hidden ()
 sub_test_grade_category_set_hidden ()
 sub_test_grade_category_insert_course_category ()
 generate_random_raw_grade ($item, $userid)

Detailed Description

Definition at line 40 of file testgradecategory.php.


Constructor & Destructor Documentation

Definition at line 42 of file testgradecategory.php.

Reimplemented from UnitTestCaseUsingDatabase.

Definition at line 47 of file testgradecategory.php.


Member Function Documentation

generate_random_raw_grade ( item,
userid 
)

Definition at line 658 of file testgradecategory.php.

helper_test_grade_agg_method ( grade_category,
grade_items,
grade_grades,
aggmethod,
aggmethodname,
correct1,
correct2 
)

Test grade category aggregation using the supplied grade objects and aggregation method

Parameters:
grade_category$grade_categorythe category to be tested
array$grade_itemsarray of instance of grade_item
array$grade_gradesarray of instances of grade_grade
int$aggmethodthe aggregation method to apply ie GRADE_AGGREGATE_MEAN
string$aggmethodnamethe name of the aggregation method to apply. Used to display any test failure messages
int$correct1the correct final grade for the category with NO items hidden
int$correct2the correct final grade for the category with the grade at $grade_grades[0] hidden
Returns:
void

Definition at line 372 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

helper_test_grade_aggregation_result ( grade_category,
correctgrade,
msg 
)

Verify the value of the category grade item for $this->userid

Parameters:
grade_category$grade_categorythe category to be tested
int$correctgradethe expected grade
stringmsg The message that should be displayed if the correct grade is not found
Returns:
void

Definition at line 394 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 420 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 426 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 135 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 95 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 187 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 142 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 151 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 596 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 491 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 245 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Tests the calculation of grades using the various aggregation methods with and without hidden grades This will not work entirely until MDL-11837 is done type $DB

Definition at line 265 of file testgradecategory.php.

Here is the call graph for this function:

Definition at line 497 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 562 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 524 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 546 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 539 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 569 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 197 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 645 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

TODO implement

Definition at line 487 of file testgradecategory.php.

Here is the caller graph for this function:

Definition at line 590 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

TODO implement

Definition at line 605 of file testgradecategory.php.

Here is the caller graph for this function:

Definition at line 629 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 609 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 516 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 531 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 583 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 228 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 636 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 616 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 552 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 576 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 159 of file testgradecategory.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 54 of file testgradecategory.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations