You are here

protected function CommerceReportsSalesTestCase::_getDates in Commerce Reporting 7.3

3 calls to CommerceReportsSalesTestCase::_getDates()
CommerceReportsSalesTestCase::testMultipleOrders in tests/commerce_reports.test
CommerceReportsSalesTestCase::testNoOrders in tests/commerce_reports.test
CommerceReportsSalesTestCase::testSingleOrder in tests/commerce_reports.test

File

tests/commerce_reports.test, line 352
Unit tests for the commerce reports module.

Class

CommerceReportsSalesTestCase

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;
}