You are here

protected function OrderBrowserTestBase::getAdministratorPermissions in Commerce Core 8.2

Gets the permissions for the admin user.

Return value

string[] The permissions.

Overrides CommerceBrowserTestBase::getAdministratorPermissions

4 calls to OrderBrowserTestBase::getAdministratorPermissions()
CartBrowserTestBase::getAdministratorPermissions in modules/cart/tests/src/Functional/CartBrowserTestBase.php
Gets the permissions for the admin user.
CartTest::getAdministratorPermissions in modules/cart/tests/src/Functional/CartTest.php
Gets the permissions for the admin user.
CustomerProfileTypeTest::getAdministratorPermissions in modules/order/tests/src/Functional/CustomerProfileTypeTest.php
Gets the permissions for the admin user.
OrderAdminTest::getAdministratorPermissions in modules/log/tests/src/Functional/OrderAdminTest.php
Gets the permissions for the admin user.
4 methods override OrderBrowserTestBase::getAdministratorPermissions()
CartBrowserTestBase::getAdministratorPermissions in modules/cart/tests/src/Functional/CartBrowserTestBase.php
Gets the permissions for the admin user.
CartTest::getAdministratorPermissions in modules/cart/tests/src/Functional/CartTest.php
Gets the permissions for the admin user.
CustomerProfileTypeTest::getAdministratorPermissions in modules/order/tests/src/Functional/CustomerProfileTypeTest.php
Gets the permissions for the admin user.
OrderAdminTest::getAdministratorPermissions in modules/log/tests/src/Functional/OrderAdminTest.php
Gets the permissions for the admin user.

File

modules/order/tests/src/Functional/OrderBrowserTestBase.php, line 34

Class

OrderBrowserTestBase
Defines base class for commerce_order test cases.

Namespace

Drupal\Tests\commerce_order\Functional

Code

protected function getAdministratorPermissions() {
  return array_merge([
    'administer commerce_order',
    'administer commerce_order_type',
    'access commerce_order overview',
  ], parent::getAdministratorPermissions());
}