[ Index ]

PHP Cross Reference of Unnamed Project

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: 253 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class

behat_permissions:: (6 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()
  i_define_the_allowed_role_assignments_for_a_role_as()
  i_fill_in_the_allowed_role_assignments_form_for_a_role_with()


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

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

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

i_define_the_allowed_role_assignments_for_a_role_as($rolename, $table)   X-Ref
Set the allowed role assignments for the specified role.

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

i_fill_in_the_allowed_role_assignments_form_for_a_role_with($sourcerole, $table)   X-Ref
Fill in the allowed role assignments form for the specied role.

Takes a table with two columns. Each row should contain the target
role, and either "Assignable" or "Not assignable".

param: String $sourcerole
param: TableNode $table
return: void



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1