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.

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