Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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