[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/tests/behat/ -> behat_deprecated.php (summary)

Steps definitions that will be deprecated in the next releases.

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

Defines 1 class

behat_deprecated:: (25 methods):
  i_click_on_in_the_table_row()
  i_go_to_notifications_page()
  i_add_file_from_recent_files_to_filepicker()
  i_upload_file_to_filepicker()
  i_create_folder_in_filepicker()
  i_open_folder_from_filepicker()
  i_unzip_file_from_filepicker()
  i_zip_folder_from_filepicker()
  i_delete_file_from_filepicker()
  i_send_message_to_user()
  i_add_user_to_cohort()
  i_add_user_to_group()
  fill_field()
  select_option()
  select_radio()
  check_option()
  uncheck_option()
  the_field_should_match_value()
  assert_checkbox_checked()
  assert_checkbox_not_checked()
  i_fill_the_moodle_form_with()
  should_exists()
  should_not_exists()
  the_following_exists()
  deprecated_message()


Class: behat_deprecated  - X-Ref

Deprecated behat step definitions.

i_click_on_in_the_table_row($element, $selectortype, $tablerowtext)   X-Ref
Click on the specified element inside a table row containing the specified text.

param: string $element Element we look for
param: string $selectortype The type of what we look for
param: string $tablerowtext The table row text

i_go_to_notifications_page()   X-Ref
Goes to notification page ensuring site admin navigation is loaded.

Step [I expand "Site administration" node] will ensure that administration menu
is opened in both javascript and non-javascript modes.

return: Given[]

i_add_file_from_recent_files_to_filepicker($filename, $filepickerelement)   X-Ref
Adds the specified file from the 'Recent files' repository to the specified filepicker of the current page.

param: string $filename
param: string $filepickerelement

i_upload_file_to_filepicker($filepath, $filepickerelement)   X-Ref
Uploads a file to the specified filemanager leaving other fields in upload form default. The paths should be relative to moodle codebase.

param: string $filepath
param: string $filepickerelement

i_create_folder_in_filepicker($foldername, $filepickerelement)   X-Ref
Creates a folder with specified name in the current folder and in the specified filepicker field.

param: string $foldername
param: string $filepickerelement

i_open_folder_from_filepicker($foldername, $filepickerelement)   X-Ref
Opens the contents of a filepicker folder. It looks for the folder in the current folder and in the path bar.

param: string $foldername
param: string $filepickerelement

i_unzip_file_from_filepicker($filename, $filepickerelement)   X-Ref
Unzips the specified file from the specified filepicker field. The zip file has to be visible in the current folder.

param: string $filename
param: string $filepickerelement

i_zip_folder_from_filepicker($foldername, $filepickerelement)   X-Ref
Zips the specified folder from the specified filepicker field. The folder has to be in the current folder.

param: string $foldername
param: string $filepickerelement

i_delete_file_from_filepicker($name, $filepickerelement)   X-Ref
Deletes the specified file or folder from the specified filepicker field.

param: string $name
param: string $filepickerelement

i_send_message_to_user($messagecontent, $tousername)   X-Ref
Sends a message to the specified user from the logged user.

param: string $messagecontent
param: string $tousername

i_add_user_to_cohort($username, $cohortidnumber)   X-Ref
Adds the user to the specified cohort.

param: string $username
param: string $cohortidnumber

i_add_user_to_group($username, $groupname)   X-Ref
Add the specified user to the group. You should be in the groups page when running this step.

param: string $username
param: string $groupname

fill_field($field, $value)   X-Ref
Fills in form text field with specified id|name|label|value. It works with text-based fields.

param: string $field
param: string $value

select_option($option, $select)   X-Ref
Selects option in select field with specified id|name|label|value.

param: string $option
param: string $select

select_radio($radio)   X-Ref
Selects the specified id|name|label from the specified radio button.

param: string $radio The radio button id, name or label value

check_option($option)   X-Ref
Checks checkbox with specified id|name|label|value.

param: string $option

uncheck_option($option)   X-Ref
Unchecks checkbox with specified id|name|label|value.

param: string $option

the_field_should_match_value($locator, $value)   X-Ref
Checks that the field matches the specified value. When using multi-select fields use commas to separate selected options.

param: string $locator
param: string $value

assert_checkbox_checked($checkbox)   X-Ref
Checks, that checkbox with specified in|name|label|value is checked.

param: string $checkbox

assert_checkbox_not_checked($checkbox)   X-Ref
Checks, that checkbox with specified in|name|label|value is unchecked.

param: string $checkbox

i_fill_the_moodle_form_with(TableNode $data)   X-Ref
Fills a moodle form with field/value data.

param: TableNode $data

should_exists($element, $selectortype)   X-Ref
Checks the provided element and selector type exists in the current page.

This step is for advanced users, use it if you don't find anything else suitable for what you need.

param: string $element The locator of the specified selector
param: string $selectortype The selector type

should_not_exists($element, $selectortype)   X-Ref
Checks that the provided element and selector type not exists in the current page.

This step is for advanced users, use it if you don't find anything else suitable for what you need.

param: string $element The locator of the specified selector
param: string $selectortype The selector type

the_following_exists($elementname, TableNode $data)   X-Ref
Creates the specified element. More info about available elements in http://docs.moodle.org/dev/Acceptance_testing#Fixtures.

param: string    $elementname The name of the entity to add
param: TableNode $data

deprecated_message($alternatives)   X-Ref
Throws an exception if $CFG->behat_usedeprecated is not allowed.

param: string|array $alternatives Alternative/s to the requested step
return: void



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