You are here

protected function ProductBundleStockBrowserTestBase::getAdministratorPermissions in Commerce Product Bundle 8

Gets the permissions for the admin user.

Return value

string[] The permissions.

Overrides ProductBundleBrowserTestBase::getAdministratorPermissions

File

modules/commerce_product_bundle_stock/tests/src/Functional/ProductBundleStockBrowserTestBase.php, line 42

Class

ProductBundleStockBrowserTestBase
Defines base class for commerce stock test cases.

Namespace

Drupal\Tests\commerce_product_bundle_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',
    'administer commerce_stock',
    'administer commerce stock location entities',
    'administer commerce stock location types',
    'add commerce stock location entities',
    'delete commerce stock location entities',
    'view commerce stock location entities',
    'access commerce_product overview',
  ], parent::getAdministratorPermissions());
}