You are here

protected function CommerceBaseTestCase::createStoreAdmin in Commerce Core 7

Returns a store administrator user. Only has permissions for administering Commerce modules.

14 calls to CommerceBaseTestCase::createStoreAdmin()
CommerceBaseTestCase::assertProductCreated in tests/commerce_base.test
Asserts that a product has been created.
CommerceBaseTesterTestCase::testTestCreateDummyProduct in tests/commerce_base.test
Make a test product.
CommerceBaseTesterTestCase::testTestCreateDummyProductType in tests/commerce_base.test
Make a test product type.
CommerceBaseTesterTestCase::testTestCreateDummyTaxRate in tests/commerce_base.test
Test creating a new tax rate.
CommerceBaseTesterTestCase::testTestCreateDummyTaxType in tests/commerce_base.test
Test creating a new tax type.

... See full list

File

tests/commerce_base.test, line 204
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 createStoreAdmin() {
  return $this
    ->createUserWithPermissionHelper('store admin');
}