X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/blocks/tests/behat
home
/
cbholdings
/
pasukulu
/
blocks
/
tests
/
behat
/
📁
..
📄
add_blocks.feature
(931 B)
📄
add_blocks_overridden.feature
(3.76 KB)
📄
add_blocks_overridden_disabled.feature
(5.48 KB)
📄
behat_blocks.php
(8.24 KB)
📄
configure_block_throughout_site.feature
(3.03 KB)
📄
delete_block.feature
(1.42 KB)
📄
hidden_block_region.feature
(2.39 KB)
📄
hide_blocks.feature
(1.27 KB)
📄
manage_blocks.feature
(2.43 KB)
📄
move_blocks.feature
(1.73 KB)
📄
restrict_available_blocks.feature
(1.64 KB)
📄
return_block_original_state.feature
(1.98 KB)
Editing: add_blocks_overridden.feature
@block @core_block @javascript @addablocklink Feature: Add a block when main feature is enabled In order to add a block to my course As a teacher Some blocks should be only added to courses if the main feature they are based on is enabled. Background: Given the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | And I am on the "C1" "course" page logged in as "admin" Scenario Outline: The block can be added when main feature is enabled Given the following config values are set as admin: | <settingname1> | 1 | <settingplugin1> | | <settingname2> | 1 | | And I turn editing mode on When I click on "Add a block" "link" Then I should see "<blockname>" Examples: | blockname | settingname1 | settingname2 | settingplugin1 | | Accessibility review | enableaccessibilitytools | | | | Blog menu | enableblogs | | | | Recent blog entries | enableblogs | | | | Blog tags | enableblogs | usetags | | | Comments | usecomments | | | | Course completion status | enablecompletion | | | | Global search | enableglobalsearch | | | | Latest badges | enablebadges | | | | Tags | usetags | | | | Learning plans | enabled | | core_competency | Scenario Outline: The block cannot be added when main feature is disabled Given the following config values are set as admin: | <settingname1> | 0 | <settingplugin1> | | <settingname2> | 0 | | And I turn editing mode on When I click on "Add a block" "link" Then I should not see "<blockname>" Examples: | blockname | settingname1 | settingname2 | settingplugin1 | | Accessibility review | enableaccessibilitytools | | | | Blog menu | enableblogs | | | | Recent blog entries | enableblogs | | | | Blog tags | enableblogs | usetags | | | Comments | usecomments | | | | Course completion status | enablecompletion | | | | Global search | enableglobalsearch | | | | Latest badges | enablebadges | | | | Tags | usetags | | | | Learning plans | enabled | | core_competency |
Upload File
Create Folder