Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Commenting system steps definitions for question.

Author: Safat Shahin <safatshahin@catalyst-au.net>
Copyright: 2021 Catalyst IT Australia Pty Ltd
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 168 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 2 files
 question/tests/behat/behat_question_base.php
 lib/behat/behat_base.php

Defines 1 class


Class: behat_qbank_comment  - X-Ref

Steps definitions to deal with the commenting system in question.

i_click_on_the_row_containing($linkname)   X-Ref
Looks for a table, then looks for a row that contains the given text.
Once it finds the right row, it clicks a link in that row.

param: string $linkname
param: string $rowtext

i_should_see_on_the_column($linkdata)   X-Ref
Looks for the appropriate comment count in the column.

param: string $linkdata

i_add_comment_to_question($comment)   X-Ref
Adds the specified option to the question comments of the current modal.

param: string $comment

i_add_comment_to_question_preview($comment)   X-Ref
Adds the specified option to the question comments of the question preview.

param: string $comment

i_delete_comment_from_question_preview($comment)   X-Ref
Deletes the specified comment from the current question comment preview.

param: string $comment

i_delete_comment_from_question($comment)   X-Ref
Deletes the specified comment from the current question comment modal.

param: string $comment