[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/forum/tests/behat/ -> behat_mod_forum.php (summary)

Steps definitions related with the forum activity.

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_mod_forum:: (4 methods):
  i_add_a_new_topic_to_forum_with()
  i_add_a_forum_discussion_to_forum_with()
  i_reply_post_from_forum_with()
  add_new_discussion()


Class: behat_mod_forum  - X-Ref

Forum-related steps definitions.

i_add_a_new_topic_to_forum_with($forumname, TableNode $table)   X-Ref
Adds a topic to the forum specified by it's name. Useful for the Announcements and blog-style forums.

param: string $forumname
param: TableNode $table

i_add_a_forum_discussion_to_forum_with($forumname, TableNode $table)   X-Ref
Adds a discussion to the forum specified by it's name with the provided table data (usually Subject and Message). The step begins from the forum's course page.

param: string $forumname
param: TableNode $table

i_reply_post_from_forum_with($postsubject, $forumname, TableNode $table)   X-Ref
Adds a reply to the specified post of the specified forum. The step begins from the forum's page or from the forum's course page.

param: string $postname The subject of the post
param: string $forumname The forum name
param: TableNode $table

add_new_discussion($forumname, TableNode $table, $buttonstr)   X-Ref
Returns the steps list to add a new discussion to a forum.

Abstracts add a new topic and add a new discussion, as depending
on the forum type the button string changes.

param: string $forumname
param: TableNode $table
param: string $buttonstr



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1