protected function CommerceDiscountTestBase::permissionBuilder in Commerce Discount 7
Overrides CommerceBaseTestCase::permissionBuilder().
Overrides CommerceBaseTestCase::permissionBuilder
File
- tests/
commerce_discount_base.test, line 40 - Commerce Discounts test base.
Class
- CommerceDiscountTestBase
- Base class for commerce discount tests.
Code
protected function permissionBuilder($set) {
$permissions = parent::permissionBuilder($set);
switch ($set) {
case 'store admin':
case 'site admin':
$permissions[] = 'administer commerce discounts';
break;
}
return $permissions;
}