You are here

protected function CommerceWishlistTestBase::permissionBuilder in Commerce Wishlist 7.3

Overrides CommerceBaseTestCase::permissionBuilder().

Overrides CommerceBaseTestCase::permissionBuilder

File

./commerce_wishlist.test, line 42
Tests for Commerce Wishlist.

Class

CommerceWishlistTestBase
Base class for commerce wishlist tests.

Code

protected function permissionBuilder($set) {
  $permissions = parent::permissionBuilder($set);
  switch ($set) {
    case 'store admin':
      $permissions[] = 'configure wish lists';
      break;
    case 'store customer':
      $permissions[] = 'manage own wish list';
      break;
  }
  return $permissions;
}