protected function CommerceReportsBaseTestCase::createCustomers in Commerce Reporting 7.3
Helper function creating multiple dummy customers.
7 calls to CommerceReportsBaseTestCase::createCustomers()
- CommerceReportsBaseTestCase::createOrders in tests/
commerce_reports.test - Helper function creating multiple dummy orders. If no customers or products exist, then one of each get created.
- CommerceReportsCustomerTestCase::testMultipleCustomers in tests/
commerce_reports.test - Make one customer perform multiple orders with multiple products. Then verifies if the reporting is correct.
- CommerceReportsSalesOverviewTestCase::testMonthlyOverview in tests/
commerce_reports.test - CommerceReportsSalesOverviewTestCase::testOutsideOverviewScope in tests/
commerce_reports.test - CommerceReportsSalesOverviewTestCase::testTodayOverview in tests/
commerce_reports.test
File
- tests/
commerce_reports.test, line 35 - Unit tests for the commerce reports module.
Class
- CommerceReportsBaseTestCase
- @file Unit tests for the commerce reports module.
Code
protected function createCustomers($amount = 1) {
for ($i = 0; $i < $amount; $i++) {
$customer = $this
->createStoreCustomer();
$this->customers[$customer->uid] = $customer;
}
}