Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 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: 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


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