protected function CommerceReportsPatternsTestCase::createPatternsAdmin in Commerce Reporting 7.3
Same name and namespace in other branches
- 7.4 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
Code
protected function createPatternsAdmin() {
$permissions = $this
->permissionBuilder('store admin');
$permissions[] = 'access commerce reports patterns';
$user = $this
->drupalCreateUser($permissions);
return $user;
}