|
Moodle
2.2.1
http://www.collinsharper.com
|


Definition at line 40 of file testgradecategory.php.
| __construct | ( | ) |
Definition at line 42 of file testgradecategory.php.
| __destruct | ( | ) |
Reimplemented from UnitTestCaseUsingDatabase.
Definition at line 47 of file testgradecategory.php.
| 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
| grade_category | $grade_category | the category to be tested |
| array | $grade_items | array of instance of grade_item |
| array | $grade_grades | array of instances of grade_grade |
| int | $aggmethod | the aggregation method to apply ie GRADE_AGGREGATE_MEAN |
| string | $aggmethodname | the name of the aggregation method to apply. Used to display any test failure messages |
| int | $correct1 | the correct final grade for the category with NO items hidden |
| int | $correct2 | the correct final grade for the category with the grade at $grade_grades[0] hidden |
Definition at line 372 of file testgradecategory.php.


| helper_test_grade_aggregation_result | ( | $ | grade_category, |
| $ | correctgrade, | ||
| $ | msg | ||
| ) |
Verify the value of the category grade item for $this->userid
| grade_category | $grade_category | the category to be tested |
| int | $correctgrade | the expected grade |
| string | msg The message that should be displayed if the correct grade is not found |
Definition at line 394 of file testgradecategory.php.


Definition at line 420 of file testgradecategory.php.


Definition at line 426 of file testgradecategory.php.


Definition at line 135 of file testgradecategory.php.


Definition at line 95 of file testgradecategory.php.


Definition at line 187 of file testgradecategory.php.


Definition at line 142 of file testgradecategory.php.


Definition at line 151 of file testgradecategory.php.


Definition at line 596 of file testgradecategory.php.


Definition at line 491 of file testgradecategory.php.


Definition at line 245 of file testgradecategory.php.


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.

Definition at line 497 of file testgradecategory.php.


Definition at line 562 of file testgradecategory.php.


Definition at line 524 of file testgradecategory.php.


Definition at line 546 of file testgradecategory.php.


Definition at line 539 of file testgradecategory.php.


Definition at line 569 of file testgradecategory.php.


Definition at line 197 of file testgradecategory.php.


Definition at line 645 of file testgradecategory.php.


TODO implement
Definition at line 487 of file testgradecategory.php.

Definition at line 590 of file testgradecategory.php.


TODO implement
Definition at line 605 of file testgradecategory.php.

Definition at line 629 of file testgradecategory.php.


Definition at line 609 of file testgradecategory.php.


Definition at line 516 of file testgradecategory.php.


Definition at line 531 of file testgradecategory.php.


Definition at line 583 of file testgradecategory.php.


Definition at line 228 of file testgradecategory.php.


Definition at line 636 of file testgradecategory.php.


Definition at line 616 of file testgradecategory.php.


Definition at line 552 of file testgradecategory.php.


Definition at line 576 of file testgradecategory.php.


Definition at line 159 of file testgradecategory.php.

