public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     SavedReportTestHelper::makeSummationWithDrillDownReport();
     SavedReportTestHelper::makeSimpleContactRowsAndColumnsReport();
 }
 /**
  * @depends testApplyAndResetRuntimeFilters
  */
 public function testDrillDownDetails()
 {
     $savedReport = SavedReportTestHelper::makeSummationWithDrillDownReport();
     $this->setGetArray(array('id' => $savedReport->id, 'rowId' => 2, 'runReport' => true, 'groupByRowValueowner__User' => Yii::app()->user->userModel->id));
     $postData = static::makeSummationReportPostData();
     $this->setPostArray($postData);
     $content = $this->runControllerWithNoExceptionsAndGetContent('reports/default/drillDownDetails');
     $this->assertContains('<th id="report-results-grid-view2_c2">Currency Value</th>', $content);
     $this->assertContains('No results found', $content);
     //Check drillDown works with runtime filters
     $this->setPostArray(array('SummationReportWizardForm' => array('Filters' => array(array('attributeIndexOrDerivedType' => 'string', 'operator' => OperatorRules::TYPE_EQUALS, 'value' => 'string1')))));
     $this->runControllerWithNoExceptionsAndGetContent('reports/default/applyRuntimeFilters', true);
     $content = $this->runControllerWithNoExceptionsAndGetContent('reports/default/drillDownDetails');
     $this->assertContains('<th id="report-results-grid-view2_c2">Currency Value</th>', $content);
     $this->assertContains('1 result(s)', $content);
 }
 /**
  * @depends testApplyAndResetRuntimeFilters
  */
 public function testDrillDownDetails()
 {
     $savedReport = SavedReportTestHelper::makeSummationWithDrillDownReport();
     if (RedBeanDatabase::isFrozen()) {
         return;
     }
     $this->setGetArray(array('id' => $savedReport->id, 'rowId' => 2, 'runReport' => true, 'groupByRowValueowner__User' => Yii::app()->user->userModel->id));
     $postData = static::makeSummationReportPostData();
     $this->setPostArray($postData);
     $content = $this->runControllerWithNoExceptionsAndGetContent('reports/default/drillDownDetails');
     $this->assertTrue(strpos($content, '<th id="report-results-grid-view2_c2">Currency Value</th>') !== false);
 }