Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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