You are here

protected function CommerceReportsTaxGenerationTests::permissionBuilder in Commerce Reporting 7.4

Overrides CommerceBaseTestCase::permissionBuilder().

Overrides CommerceBaseTestCase::permissionBuilder

File

modules/tax/Tests/CommerceReportsTaxGenerationTests.php, line 23

Class

CommerceReportsTaxGenerationTests

Namespace

Drupal\commerce_reports_tax\Tests

Code

protected function permissionBuilder($set) {
  $permissions = parent::permissionBuilder($set);
  switch ($set) {
    case 'store admin':
    case 'site admin':
      $permissions[] = 'access commerce tax reports';
      $permissions[] = 'configure commerce tax reports';
      break;
  }
  return $permissions;
}