You are here

protected function CommerceWebDriverTestBase::getAdministratorPermissions in Commerce Core 8.2

Gets the permissions for the admin user.

Return value

string[] The permissions.

11 calls to CommerceWebDriverTestBase::getAdministratorPermissions()
CommerceWebDriverTestBase::setUp in tests/src/FunctionalJavascript/CommerceWebDriverTestBase.php
CustomTest::getAdministratorPermissions in modules/tax/tests/src/FunctionalJavascript/CustomTest.php
Gets the permissions for the admin user.
NumberPatternTest::getAdministratorPermissions in modules/number_pattern/tests/src/FunctionalJavascript/NumberPatternTest.php
Gets the permissions for the admin user.
OrderWebDriverTestBase::getAdministratorPermissions in modules/order/tests/src/FunctionalJavascript/OrderWebDriverTestBase.php
Gets the permissions for the admin user.
PaymentCheckoutTest::getAdministratorPermissions in modules/payment/tests/src/FunctionalJavascript/PaymentCheckoutTest.php
Gets the permissions for the admin user.

... See full list

10 methods override CommerceWebDriverTestBase::getAdministratorPermissions()
CustomTest::getAdministratorPermissions in modules/tax/tests/src/FunctionalJavascript/CustomTest.php
Gets the permissions for the admin user.
NumberPatternTest::getAdministratorPermissions in modules/number_pattern/tests/src/FunctionalJavascript/NumberPatternTest.php
Gets the permissions for the admin user.
OrderWebDriverTestBase::getAdministratorPermissions in modules/order/tests/src/FunctionalJavascript/OrderWebDriverTestBase.php
Gets the permissions for the admin user.
PaymentCheckoutTest::getAdministratorPermissions in modules/payment/tests/src/FunctionalJavascript/PaymentCheckoutTest.php
Gets the permissions for the admin user.
PaymentGatewayFormTest::getAdministratorPermissions in modules/payment/tests/src/FunctionalJavascript/PaymentGatewayFormTest.php
Gets the permissions for the admin user.

... See full list

File

tests/src/FunctionalJavascript/CommerceWebDriverTestBase.php, line 104

Class

CommerceWebDriverTestBase
Provides a base class for Commerce functional tests.

Namespace

Drupal\Tests\commerce\FunctionalJavascript

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',
  ];
}