Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

Steps definitions related to mod_feedback.

Copyright: 2016 Marina Glancy
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 233 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class


Class: behat_mod_feedback  - X-Ref

Steps definitions related to mod_feedback.

i_add_question_to_the_feedback_with($questiontype, TableNode $questiondata)   X-Ref
Adds a question to the existing feedback with filling the form.

The form for creating a question should be on one page.

param: string $questiontype
param: TableNode $questiondata with data for filling the add question form

i_add_a_page_break_to_the_feedback()   X-Ref
Adds a question to the existing feedback with filling the form.

The form for creating a question should be on one page.


i_log_in_as_and_complete_feedback_in_course($username, $feedbackname, $coursename, TableNode $answers)   X-Ref
Quick way to generate answers to a one-page feedback.

param: string $questiontype
param: TableNode $questiondata with data for filling the add question form

following_should_export_feedback_identical_to($link, $filename)   X-Ref
Exports feedback and makes sure the export file is the same as in the fixture

param: string $link
param: string $filename

i_show_chart_data_for_the_feedback($feedbackname)   X-Ref
No description

compare_exports($expected, $actual)   X-Ref
Ensures two feedback export files are identical

Maps the itemids and converts DEPENDITEM if necessary

Throws ExpectationException if exports are different

param: string $expected
param: string $actual