You are here

class AcquiaLiftTestReports in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 tests/acquia_lift.test_classes.inc \AcquiaLiftTestReports

Class AcquiaLiftTestReports

Helper class providing static methods that return basic reports.

Hierarchy

Expanded class hierarchy of AcquiaLiftTestReports

File

tests/acquia_lift.test_classes.inc, line 236
Provides test classes for Acquia Lift

View source
class AcquiaLiftTestReports {
  public static function getBasicReport() {
    return array(
      'results' => array(
        array(
          'decision_id' => 'option-a',
          'results' => array(
            array(
              'timestamp' => '2015-07-07T00:00:00Z',
              'total_play' => 250,
              'total_goals' => 25,
              'total_goals_value' => 25,
              'total_plays_explore' => 100,
              'total_goals_explore' => 12,
              'total_goals_value_explore' => 12,
            ),
            array(
              'timestamp' => '2015-07-08T00:00:00Z',
              'total_play' => 240,
              'total_goals' => 26,
              'total_goals_value' => 26,
              'total_plays_explore' => 101,
              'total_goals_explore' => 13,
              'total_goals_value_explore' => 13,
            ),
          ),
        ),
        array(
          'decision_id' => 'option-b',
          'results' => array(
            array(
              'timestamp' => '2015-07-07T00:00:00Z',
              'total_play' => 265,
              'total_goals' => 27,
              'total_goals_value' => 27,
              'total_plays_explore' => 99,
              'total_goals_explore' => 11,
              'total_goals_value_explore' => 11,
            ),
            array(
              'timestamp' => '2015-07-08T00:00:00Z',
              'total_play' => 245,
              'total_goals' => 22,
              'total_goals_value' => 22,
              'total_plays_explore' => 100,
              'total_goals_explore' => 10,
              'total_goals_value_explore' => 10,
            ),
          ),
        ),
      ),
      'total_plays' => 1000,
      'total_goals' => 100,
    );
  }

}

Members