protected function ProductBrowserTestBase::getAdministratorPermissions in Commerce Core 8.2
Gets the permissions for the admin user.
Return value
string[] The permissions.
Overrides CommerceBrowserTestBase::getAdministratorPermissions
3 calls to ProductBrowserTestBase::getAdministratorPermissions()
- ProductAttributeTest::getAdministratorPermissions in modules/
product/ tests/ src/ Functional/ ProductAttributeTest.php - Gets the permissions for the admin user.
- ProductAttributeTranslationTest::getAdministratorPermissions in modules/
product/ tests/ src/ Functional/ ProductAttributeTranslationTest.php - Gets the permissions for the admin user.
- ProductTranslationTest::getAdministratorPermissions in modules/
product/ tests/ src/ Functional/ ProductTranslationTest.php - Gets the permissions for the admin user.
3 methods override ProductBrowserTestBase::getAdministratorPermissions()
- ProductAttributeTest::getAdministratorPermissions in modules/
product/ tests/ src/ Functional/ ProductAttributeTest.php - Gets the permissions for the admin user.
- ProductAttributeTranslationTest::getAdministratorPermissions in modules/
product/ tests/ src/ Functional/ ProductAttributeTranslationTest.php - Gets the permissions for the admin user.
- ProductTranslationTest::getAdministratorPermissions in modules/
product/ tests/ src/ Functional/ ProductTranslationTest.php - Gets the permissions for the admin user.
File
- modules/
product/ tests/ src/ Functional/ ProductBrowserTestBase.php, line 45
Class
- ProductBrowserTestBase
- Defines base class for shortcut test cases.
Namespace
Drupal\Tests\commerce_product\FunctionalCode
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',
'access commerce_product overview',
], parent::getAdministratorPermissions());
}