You are here

protected function StockBrowserTestBase::getAdministratorPermissions in Commerce Stock 8

Gets the permissions for the admin user.

Return value

string[] The permissions.

Overrides CommerceBrowserTestBase::getAdministratorPermissions

2 calls to StockBrowserTestBase::getAdministratorPermissions()
StockBrowserTestBase::setUp in tests/src/Functional/StockBrowserTestBase.php
StockLevelFieldTestBase::getAdministratorPermissions in modules/field/tests/src/Functional/StockLevelFieldTestBase.php
Gets the permissions for the admin user.
1 method overrides StockBrowserTestBase::getAdministratorPermissions()
StockLevelFieldTestBase::getAdministratorPermissions in modules/field/tests/src/Functional/StockLevelFieldTestBase.php
Gets the permissions for the admin user.

File

tests/src/Functional/StockBrowserTestBase.php, line 76

Class

StockBrowserTestBase
Defines base class for commerce stock test cases.

Namespace

Drupal\Tests\commerce_stock\Functional

Code

protected function getAdministratorPermissions() {
  return array_merge([
    'administer commerce_product',
    'administer commerce_product_type',
    'administer commerce_product fields',
    'administer commerce_product_variation fields',
    'administer commerce_product_variation display',
    'access commerce_product overview',
    'view the administration theme',
    'access administration pages',
    'access commerce administration pages',
    'administer commerce_currency',
    'administer commerce_store',
    'administer commerce_store_type',
    'administer commerce_order',
    'administer commerce_stock_location',
    'administer commerce_stock_location_type',
  ], []);
}