}
}
- public function postProcess() {
-
- $this->beginPostProcess();
-
- // get the acl clauses built before we assemble the query
- $this->buildACLClause($this->_aliases['civicrm_contact']);
- $sql = $this->buildQuery(TRUE);
-
- $rows = array();
- $this->buildRows($sql, $rows);
-
- $this->formatDisplay($rows);
- $this->doTemplateAssignment($rows);
- $this->endPostProcess($rows);
- }
-
/**
* Alter display of rows.
*
));
}
+ /**
+ * Test api to get rows from reports with ACLs enabled.
+ *
+ * Checking for lack of fatal error at the moment.
+ *
+ * @dataProvider getReportTemplates
+ *
+ * @param $reportID
+ *
+ * @throws \PHPUnit_Framework_IncompleteTestError
+ */
+ public function testReportTemplateGetRowsAllReportsACL($reportID) {
+ if (stristr($reportID, 'has existing issues')) {
+ $this->markTestIncomplete($reportID);
+ }
+ $this->hookClass->setHook('civicrm_aclWhereClause', array($this, 'aclWhereHookNoResults'));
+ $this->callAPISuccess('report_template', 'getrows', array(
+ 'report_id' => $reportID,
+ ));
+ }
+
/**
* Test get statistics.
*