You are here

protected function CommerceBaseTestCase::createSiteAdmin in Commerce Core 7

Returns a site administrator user. Only has permissions for administering modules in Drupal core.

4 calls to CommerceBaseTestCase::createSiteAdmin()
CommerceBaseTesterTestCase::setUp in tests/commerce_base.test
setUp() performs any pre-requisite tasks that need to happen.
CommerceCheckoutTestProcess::setUp in modules/checkout/tests/commerce_checkout.test
Implementation of setUp().
CommerceOrderCRUDTestCase::setUp in modules/order/tests/commerce_order.test
Sets up a Drupal site for running functional and integration tests.
CommerceProductCRUDTestCase::setUp in modules/product/tests/commerce_product.test
Sets up a Drupal site for running functional and integration tests.

File

tests/commerce_base.test, line 196
Defines abstract base test class for the Commerce module tests.

Class

CommerceBaseTestCase
Abstract class for Commerce testing. All Commerce tests should extend this class.

Code

protected function createSiteAdmin() {
  return $this
    ->createUserWithPermissionHelper('site admin');
}