<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* @package CiviCRM
*/
class CRM_Report_Form_TestCaseTest extends CiviReportTestCase {
- static $_tablesToTruncate = array(
+ protected $_tablesToTruncate = array(
'civicrm_contact',
'civicrm_email',
'civicrm_phone',
'civicrm_contribution',
);
+ /**
+ * @return array
+ */
public function dataProvider() {
$testCaseA = array(
'CRM_Report_Form_Contribute_Detail',
array(
'fields' => array(
+ 'sort_name',
'first_name',
'email',
'total_amount',
);
}
+ /**
+ * @return array
+ */
public function badDataProvider() {
return array(
// This test-case is bad because the dataset-ascii.sql does not match the
'CRM_Report_Form_Contribute_Detail',
array(
'fields' => array(
+ 'sort_name',
'first_name',
'email',
'total_amount',
'CRM_Report_Form_Contribute_Detail',
array(
'fields' => array(
+ 'sort_name',
'first_name',
'email',
'total_amount',
function setUp() {
parent::setUp();
$this->foreignKeyChecksOff();
- $this->quickCleanup(self::$_tablesToTruncate);
+ $this->quickCleanup($this->_tablesToTruncate);
}
function tearDown() {