You are here

protected function CommerceReportsSalesTestCase::_getDates in Commerce Reporting 7.4

3 calls to CommerceReportsSalesTestCase::_getDates()
CommerceReportsSalesTestCase::testMultipleOrders in src/Tests/CommerceReportsSalesTestCase.php
CommerceReportsSalesTestCase::testNoOrders in src/Tests/CommerceReportsSalesTestCase.php
CommerceReportsSalesTestCase::testSingleOrder in src/Tests/CommerceReportsSalesTestCase.php

File

src/Tests/CommerceReportsSalesTestCase.php, line 34

Class

CommerceReportsSalesTestCase

Namespace

Drupal\commerce_reports\Tests

Code

protected function _getDates() {
  $report = views_get_view_result('commerce_reports_sales', 'page');
  $possibleDates = array();
  foreach ($report as $line) {
    $possibleDates[] = $this
      ->getOrderCreated($line);
  }
  return $possibleDates;
}