[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/blocks/comments/tests/behat/ -> behat_block_comments.php (summary)

Commenting system steps definitions.

Copyright: 2013 David Monllaó
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 107 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



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1