You are here

protected function CommerceBrowserTestBase::getAdministratorPermissions in Commerce Core 8.2

Gets the permissions for the admin user.

Return value

string[] The permissions.

15 calls to CommerceBrowserTestBase::getAdministratorPermissions()
CartDependencyTest::getAdministratorPermissions in modules/promotion/tests/src/Functional/CartDependencyTest.php
Gets the permissions for the admin user.
CheckoutFlowTest::getAdministratorPermissions in modules/checkout/tests/src/Functional/CheckoutFlowTest.php
Gets the permissions for the admin user.
CheckoutOrderTest::getAdministratorPermissions in modules/checkout/tests/src/Functional/CheckoutOrderTest.php
Gets the permissions for the admin user.
CommerceBrowserTestBase::setUp in tests/src/Functional/CommerceBrowserTestBase.php
CouponTest::getAdministratorPermissions in modules/promotion/tests/src/Functional/CouponTest.php
Gets the permissions for the admin user.

... See full list

14 methods override CommerceBrowserTestBase::getAdministratorPermissions()
CartDependencyTest::getAdministratorPermissions in modules/promotion/tests/src/Functional/CartDependencyTest.php
Gets the permissions for the admin user.
CheckoutFlowTest::getAdministratorPermissions in modules/checkout/tests/src/Functional/CheckoutFlowTest.php
Gets the permissions for the admin user.
CheckoutOrderTest::getAdministratorPermissions in modules/checkout/tests/src/Functional/CheckoutOrderTest.php
Gets the permissions for the admin user.
CouponTest::getAdministratorPermissions in modules/promotion/tests/src/Functional/CouponTest.php
Gets the permissions for the admin user.
DefaultPaymentAdminTest::getAdministratorPermissions in modules/payment/tests/src/Functional/DefaultPaymentAdminTest.php
Gets the permissions for the admin user.

... See full list

File

tests/src/Functional/CommerceBrowserTestBase.php, line 94

Class

CommerceBrowserTestBase
Provides a base class for Commerce functional tests.

Namespace

Drupal\Tests\commerce\Functional

Code

protected function getAdministratorPermissions() {
  return [
    'view the administration theme',
    'access administration pages',
    'access commerce administration pages',
    'administer commerce_currency',
    'administer commerce_store',
    'administer commerce_store_type',
  ];
}