[ Index ]

PHP Cross Reference of Moodle 310

title

Body

[close]

/blocks/tests/behat/ -> behat_blocks.php (summary)

Steps definitions related with blocks.

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

Defines 1 class

behat_blocks:: (6 methods):
  i_add_the_block()
  i_add_the_block_if_not_present()
  i_open_the_blocks_action_menu()
  i_configure_the_block()
  the_add_block_selector_should_contain_block()
  the_add_block_selector_should_not_contain_block()


Class: behat_blocks  - X-Ref

Blocks management steps definitions.

i_add_the_block($blockname)   X-Ref
Adds the selected block. Editing mode must be previously enabled.

param: string $blockname

i_add_the_block_if_not_present($blockname)   X-Ref
Adds the selected block if it is not already present. Editing mode must be previously enabled.

param: string $blockname

i_open_the_blocks_action_menu($blockname)   X-Ref
Opens a block's actions menu if it is not already opened.

param: string $blockname

i_configure_the_block($blockname)   X-Ref
Clicks on Configure block for specified block. Page must be in editing mode.

Argument block_name may be either the name of the block or CSS class of the block.

param: string $blockname

the_add_block_selector_should_contain_block($blockname)   X-Ref
Ensures that block can be added to the page but does not actually add it.

param: string $blockname

the_add_block_selector_should_not_contain_block($blockname)   X-Ref
Ensures that block can not be added to the page.

param: string $blockname



Generated: Wed Jan 22 11:59:49 2025 Cross-referenced by PHPXref 0.7.1