protected function CommerceBaseTestCase::createStoreCustomer in Commerce Core 7
Returns a store customer. It's a regular user with some Commerce permissions as access to checkout.
8 calls to CommerceBaseTestCase::createStoreCustomer()
- CommerceBaseTestCase::assertProductAddedToCart in tests/
commerce_base.test - Asserts that a product has been added to the cart.
- CommerceCartTestCase::setUpHelper in modules/
cart/ tests/ commerce_cart.test - Helper function to perform the common test tasks for cart testing.
- CommerceCheckoutTestProcess::setUp in modules/
checkout/ tests/ commerce_checkout.test - Implementation of setUp().
- CommerceCustomerUITest::setUp in modules/
customer/ tests/ commerce_customer_ui.test - Implementation of setUp().
- CommerceOrderUIAdminTest::setUp in modules/
order/ tests/ commerce_order_ui.test - Implementation of setUp().
File
- tests/
commerce_base.test, line 212 - 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 createStoreCustomer() {
return $this
->createUserWithPermissionHelper('store customer');
}