Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 402] [Versions 400 and 403]

Steps definitions related with blocks.

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

Defines 1 class


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