You are here

protected function CommerceReportsPatternsTestCase::createPatternsAdmin in Commerce Reporting 7.4

Same name and namespace in other branches
  1. 7.3 modules/patterns/tests/commerce_reports_patterns.test \CommerceReportsPatternsTestCase::createPatternsAdmin()
1 call to CommerceReportsPatternsTestCase::createPatternsAdmin()
CommerceReportsPatternsTestCase::testExample in modules/patterns/tests/commerce_reports_patterns.test

File

modules/patterns/tests/commerce_reports_patterns.test, line 18

Class

CommerceReportsPatternsTestCase

Code

protected function createPatternsAdmin() {
  $permissions = $this
    ->permissionBuilder('store admin');
  $permissions[] = 'access commerce reports patterns';
  $user = $this
    ->drupalCreateUser($permissions);
  return $user;
}