You are here

protected function CommerceMessageTestBase::permissionBuilder in Commerce Message 7

Overrides CommerceBaseTestCase::permissionBuilder().

Overrides CommerceBaseTestCase::permissionBuilder

File

./commerce_message.test, line 14

Class

CommerceMessageTestBase

Code

protected function permissionBuilder($set) {
  $permissions = parent::permissionBuilder($set);
  switch ($set) {
    case 'store admin':
    case 'site admin':
      $permissions[] = 'administer message types';
      $permissions[] = 'create messages';
      break;
  }
  return $permissions;
}