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