[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/tests/behat/ -> behat_permissions.php (summary)

Steps definitions related with permissions.

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

Defines 1 class

behat_permissions:: (4 methods):
  i_set_the_following_system_permissions_of_role()
  i_override_the_system_permissions_of_role_with()
  i_fill_the_capabilities_form_with_the_following_permissions()
  capability_has_permission()


Class: behat_permissions  - X-Ref

Steps definitions to set up permissions to capabilities.

i_set_the_following_system_permissions_of_role($rolename, $table)   X-Ref
Set system level permissions to the specified role. Expects a table with capability name and permission (Inherit/Allow/Prevent/Prohibit) columns.

param: string $rolename
param: TableNode $table
return: void Executes other steps

i_override_the_system_permissions_of_role_with($rolename, $table)   X-Ref
Overrides system capabilities at category, course and module levels. This step begins after clicking 'Permissions' link. Expects a table with capability name and permission (Inherit/Allow/Prevent/Prohibit) columns.

param: string $rolename
param: TableNode $table
return: void Executes other steps

i_fill_the_capabilities_form_with_the_following_permissions($table)   X-Ref
Fills the advanced permissions form with the provided data. Expects a table with capability name and permission (Inherit/Allow/Prevent/Prohibit) columns.

param: TableNode $table
return: void

capability_has_permission($capabilityname, $permission)   X-Ref
Checks if the capability has the specified permission. Works in the role definition advanced page.

param: string $capabilityname
param: string $permission
return: void



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1