Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Behat grade overrides for the Classic theme. More...
Public Member Functions | |
getSession ($name=null) | |
Returns the Mink session. | |
gradebook_calculations_for_the_course_are_frozen_at_version ($coursename, $version) | |
Step allowing to test before-the-fix behaviour of the gradebook. | |
i_click_on_in_search_widget (string $needle, string $haystack) | |
Clicks on an option from the specified search widget in the current gradebook page. | |
i_confirm_in_search_within_the_gradebook_widget_does_not_exist ($needle, $haystack) | |
Confirm if a value is not within the search widget within the gradebook. | |
i_confirm_in_search_within_the_gradebook_widget_exists ($needle, $haystack) | |
Confirm if a value is within the search widget within the gradebook. | |
i_duplicate_the_grade_item (string $gradeitem) | |
Duplicates a grade item or category. | |
i_give_the_grade ($grade, $userfullname, $itemname) | |
Enters a grade via the gradebook for a specific grade item and user when viewing the 'Grader report' with editing mode turned on. | |
i_hide_the_grade_item (string $gradeitem, string $type, string $page) | |
Hids a grade item or category on gradebook setup or grader page. | |
i_navigate_to_export_page_in_the_course_gradebook ($gradeexportoption) | |
Navigates to the exports page in the course gradebook and selects the specified export type from the grade exports navigation selector. | |
i_navigate_to_import_page_in_the_course_gradebook ($gradeimportoption) | |
Navigates to the imports page in the course gradebook and selects the specified import type from the grade imports navigation selector. | |
i_navigate_to_in_the_course_gradebook ($gradepath) | |
Navigates to the course gradebook and selects a specified item from the grade navigation tabs. | |
i_reset_weights_for_grade_category (string $gradeitem) | |
Resets the weights for the grade category. | |
i_set_calculation_for_grade_category_with_idnumbers (string $calculation, string $gradeitem, TableNode $data) | |
Sets a calculated manual grade category total. | |
i_set_calculation_for_grade_item_with_idnumbers ($calculation, $gradeitem, TableNode $data) | |
Sets a calculated manual grade item. | |
i_set_the_following_settings_for_grade_item (string $gradeitem, string $type, string $page, TableNode $data) | |
Changes the settings of a grade item or category or the course. | |
Public Attributes | |
const | PAGE_READY_JS |
The JS code to check that the page is ready. | |
Protected Member Functions | |
select_in_gradebook_navigation_selector () | |
select_in_gradebook_tabs () | |
Behat grade overrides for the Classic theme.
|
inherited |
Returns the Mink session.
string | null | $name | name of the session OR active session will be used |
Behat\Mink\Session |
Implemented in behat_form_field.
|
inherited |
Step allowing to test before-the-fix behaviour of the gradebook.
@Given /^gradebook calculations for the course "(?P<coursename_string>(?:[^"]|::")*)" are frozen at version "(?P<version_string>(?:[^"]|")*)"$/
string | $coursename | |
string | $version |
|
inherited |
Clicks on an option from the specified search widget in the current gradebook page.
Examples:
@Given /^I click on "(?P<needle>(?:[^"]|::")*)" in the "(?P<haystack>(?:[^"]|")*)" search widget$/
string | $needle | The value to search for. |
string | $haystack | The type of the search widget. |
|
inherited |
Confirm if a value is not within the search widget within the gradebook.
Examples:
@Given /^I confirm "(?P<needle>(?:[^"]|::")*)" in "(?P<haystack>(?:[^"]|")*)" search within the gradebook widget does not exist$/
string | $needle | The value to search for. |
string | $haystack | The type of the search widget. |
|
inherited |
Confirm if a value is within the search widget within the gradebook.
Examples:
@Given /^I confirm "(?P<needle>(?:[^"]|::")*)" in "(?P<haystack>(?:[^"]|")*)" search within the gradebook widget exists$/
string | $needle | The value to search for. |
string | $haystack | The type of the search widget. |
|
inherited |
Duplicates a grade item or category.
Teacher must be on the grade setup page.
@Given /^I duplicate the grade item "(?P<grade_item_string>(?:[^"]|::")*)"$/
string | $gradeitem |
|
inherited |
Enters a grade via the gradebook for a specific grade item and user when viewing the 'Grader report' with editing mode turned on.
@Given /^I give the grade "(?P<grade_number>(?:[^"]|::")*)" to the user "(?P<username_string>(?:[^"]|")*)" for the grade item "(?P<grade_activity_string>(?:[^"]|::")*)"$/
int | $grade | |
string | $userfullname | the user's fullname as returned by fullname() |
string | $itemname |
|
inherited |
Hids a grade item or category on gradebook setup or grader page.
Teacher must be on the grade setup page.
@Given /^I hide the grade item "(?P<grade_item_string>(?:[^"]|::")*)" of type "([^"]*)" on "([^"]*)" page$/
string | $gradeitem | |
string | $type | |
string | $page |
|
inherited |
Navigates to the exports page in the course gradebook and selects the specified export type from the grade exports navigation selector.
Examples:
@Given /^I navigate to "(?P<exportoption_string>(?:[^"]|::")*)" export page in the course gradebook$/
string | $gradeexportoption | The name of an existing grade export option. |
|
inherited |
Navigates to the imports page in the course gradebook and selects the specified import type from the grade imports navigation selector.
Examples:
@Given /^I navigate to "(?P<importoption_string>(?:[^"]|::")*)" import page in the course gradebook$/
string | $gradeimportoption | The name of an existing grade import option. |
behat_theme_classic_behat_grade::i_navigate_to_in_the_course_gradebook | ( | $gradepath | ) |
Navigates to the course gradebook and selects a specified item from the grade navigation tabs.
string | $gradepath |
Reimplemented from behat_grade.
|
inherited |
Resets the weights for the grade category.
Teacher must be on the grade setup page.
@Given /^I reset weights for grade category "(?P<grade_item_string>(?:[^"]|::")*)"$/
string | $gradeitem |
|
inherited |
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.
@Given /^I set "(?P<calculation_string>(?:[^"]|::")*)" calculation for grade category "(?P<grade_item_string>(?:[^"]|")*)" with idnumbers:$/
string | $calculation | The calculation. |
string | $gradeitem | The grade item name. |
TableNode | $data | The grade item name - idnumbers relation. |
|
inherited |
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.
@Given /^I set "(?P<calculation_string>(?:[^"]|::")*)" calculation for grade item "(?P<grade_item_string>(?:[^"]|")*)" with idnumbers:$/
string | $calculation | The calculation. |
string | $gradeitem | The grade item name. |
TableNode | $TableNode | The grade item name - idnumbers relation. |
|
inherited |
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.
@Given /^I set the following settings for grade item "(?P<grade_item_string>(?:[^"]|::")*)" of type "([^"]*)" on "([^"]*)" page:$/
string | $gradeitem | |
string | $type | |
string | $page | |
TableNode | $data |
|
protectedinherited |
|
protectedinherited |
|
inherited |
The JS code to check that the page is ready.
The document must be complete and either M.util.pending_js must be empty, or it must not be defined at all.