public function CommerceReportsSalesOverviewTestCase::testOutsideOverviewScope in Commerce Reporting 7.3
File
- tests/
commerce_reports.test, line 297 - Unit tests for the commerce reports module.
Class
Code
public function testOutsideOverviewScope() {
$this
->createCustomers(2);
$this
->createOrders(10, TRUE, array(
time() - 31 * 86400,
));
$total = $this
->getTotal();
$testData = array(
'today' => array(
'count' => 0,
'amount' => 0,
),
'yesterday' => array(
'count' => 0,
'amount' => 0,
),
'month' => array(
'count' => 0,
'amount' => 0,
),
);
$this
->_test($testData);
}