You are here

protected function ProductBundleBrowserTestBase::getAdministratorPermissions in Commerce Product Bundle 8

Gets the permissions for the admin user.

Return value

string[] The permissions.

Overrides CommerceBrowserTestBase::getAdministratorPermissions

1 call to ProductBundleBrowserTestBase::getAdministratorPermissions()
ProductBundleStockBrowserTestBase::getAdministratorPermissions in modules/commerce_product_bundle_stock/tests/src/Functional/ProductBundleStockBrowserTestBase.php
Gets the permissions for the admin user.
1 method overrides ProductBundleBrowserTestBase::getAdministratorPermissions()
ProductBundleStockBrowserTestBase::getAdministratorPermissions in modules/commerce_product_bundle_stock/tests/src/Functional/ProductBundleStockBrowserTestBase.php
Gets the permissions for the admin user.

File

tests/src/Functional/ProductBundleBrowserTestBase.php, line 66

Class

ProductBundleBrowserTestBase
Defines base class to use in commerce_product_bundle functional tests.

Namespace

Drupal\Tests\commerce_product_bundle\Functional

Code

protected function getAdministratorPermissions() {
  return array_merge([
    'administer commerce_product',
    'administer commerce_product_bundle',
    'administer commerce_product_bundle_type',
    'administer commerce_product_bundle_i',
    'administer commerce_product_bundle_i_type',
    'administer commerce_product_type',
    'administer commerce_product fields',
    'administer commerce_product_variation fields',
    'administer commerce_product_variation display',
    'access commerce_product overview',
  ], parent::getAdministratorPermissions());
}