public function CommerceAutoSkuTest::permissionBuilder in Commerce AutoSKU 7
Helper function to get different combinations of permission sets.
Parameters
$set: Can be a single string (from the following) or can be an array containing multiple values that should be merged: 'site admin': Admin permissions for Drupal core modules 'store admin': All commerce "administer X" permissions
Overrides CommerceBaseTestCase::permissionBuilder
File
- ./
commerce_autosku.test, line 35 - Contains simpletests for commerce_autosku
Class
- CommerceAutoSkuTest
- @file Contains simpletests for commerce_autosku
Code
public function permissionBuilder($sets) {
$perms = parent::permissionBuilder($sets);
// Filter perms by enabled modules:
$possible_perms = array_keys(module_invoke_all('permission'));
return array_intersect($perms, $possible_perms);
}