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.

Copyright: 2013 David MonllaĆ³
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 110 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class

behat_block_comments:: (2 methods):
  i_add_comment_to_comments_block()
  i_delete_comment_from_comments_block()


Class: behat_block_comments  - X-Ref

Steps definitions to deal with the commenting system

i_add_comment_to_comments_block($comment)   X-Ref
Adds the specified option to the comments block of the current page.

This method can be adapted in future to add other comments considering
that there could be more than one comment textarea per page.

Only 1 comments block instance is allowed per page, if this changes this
steps definitions should be adapted.

param: string $comment

i_delete_comment_from_comments_block($comment)   X-Ref
Deletes the specified comment from the current page's comments block.

param: string $comment