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