You are here

protected function CommerceAjaxAddCartBase::permissionBuilder in Commerce Ajax Add to Cart 7.2

Overrides CommerceBaseTestCase::permissionBuilder().

Overrides CommerceBaseTestCase::permissionBuilder

File

tests/dc_ajax_add_cart_ui.test, line 18
Functional tests for commerce ajax add to cart module.

Class

CommerceAjaxAddCartBase
Abstract class for commerce ajax add to cart testing.

Code

protected function permissionBuilder($set) {
  $permissions = parent::permissionBuilder($set);
  switch ($set) {
    case 'store admin':
      $permissions[] = 'administer commerce ajax add to cart';
      $permissions[] = 'administer blocks';
      break;
  }
  return $permissions;
}