[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/grade/tests/behat/ -> behat_grade.php (summary)

Behat grade related steps definitions.

Copyright: 2014 Mark Nelson <markn@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 223 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class

behat_grade:: (7 methods):
  i_give_the_grade()
  i_give_the_feedback()
  i_set_the_following_settings_for_grade_item()
  i_set_calculation_for_grade_item_with_idnumbers()
  i_set_calculation_for_grade_category_with_idnumbers()
  i_reset_weights_for_grade_category()
  gradebook_calculations_for_the_course_are_frozen_at_version()


Class: behat_grade  - X-Ref

i_give_the_grade($grade, $userfullname, $itemname)   X-Ref
Enters a grade via the gradebook for a specific grade item and user when viewing the 'Grader report' with editing mode turned on.

param: int $grade
param: string $userfullname the user's fullname as returned by fullname()
param: string $itemname

i_give_the_feedback($feedback, $userfullname, $itemname)   X-Ref
Enters a quick feedback via the gradebook for a specific grade item and user when viewing
the 'Grader report' with editing mode turned on.

param: string $feedback
param: string $userfullname the user's fullname as returned by fullname()
param: string $itemname

i_set_the_following_settings_for_grade_item($gradeitem, TableNode $data)   X-Ref
Changes the settings of a grade item or category or the course.

Teacher must be either on the grade setup page or on the Grader report page with editing mode turned on.

param: string $gradeitem
param: TableNode $data

i_set_calculation_for_grade_item_with_idnumbers($calculation, $gradeitem, TableNode $data)   X-Ref
Sets a calculated manual grade item. Needs a table with item name - idnumber relation.
The step requires you to be in the 'Gradebook setup' page.

param: string $calculation The calculation.
param: string $gradeitem The grade item name.
param: TableNode $TableNode The grade item name - idnumbers relation.

i_set_calculation_for_grade_category_with_idnumbers($calculation, $gradeitem, TableNode $data)   X-Ref
Sets a calculated manual grade category total. Needs a table with item name - idnumber relation.
The step requires you to be in the 'Gradebook setup' page.

param: string $calculation The calculation.
param: string $gradeitem The grade item name.
param: TableNode $data The grade item name - idnumbers relation.

i_reset_weights_for_grade_category($gradeitem)   X-Ref
Resets the weights for the grade category

Teacher must be on the grade setup page.

param: $gradeitem

gradebook_calculations_for_the_course_are_frozen_at_version($coursename, $version)   X-Ref
Step allowing to test before-the-fix behaviour of the gradebook

param: string $coursename
param: string $version



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