protected function CommerceReportsSalesTestCase::_getDates in Commerce Reporting 7.3
3 calls to CommerceReportsSalesTestCase::_getDates()
File
- tests/
commerce_reports.test, line 352 - Unit tests for the commerce reports module.
Class
Code
protected function _getDates() {
$report = views_get_view_result('commerce_reports_sales', 'page');
$possibleDates = array();
foreach ($report as $line) {
$possibleDates[] = $line->commerce_order_created_granularity;
}
return $possibleDates;
}