public $DBResetRequired = FALSE;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
}
public $DBResetRequired = FALSE;
protected $_entity;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
CRM_Core_DAO::createTestObject('CRM_Pledge_BAO_Pledge', [], 1, 0);
$this->callAPISuccess('Phone', 'create', ['id' => $this->individualCreate(['email' => '']), 'phone' => '911', 'location_type_id' => 'Home']);
/**
* Test setup for every test.
*/
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
}
* Connect to the database, truncate the tables that will be used
* and redirect stdin to a temporary file.
*/
- public function setUp() {
+ public function setUp(): void {
$this->_entity = 'case';
parent::setUp();
protected $_activityID;
protected $_params;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
class api_v3_ActivityTypeTest extends CiviUnitTestCase {
protected $_apiversion;
- public function setUp() {
+ public function setUp(): void {
$this->_apiversion = 3;
CRM_Core_PseudoConstant::activityType(TRUE, TRUE, TRUE, 'name');
parent::setUp();
protected $_entity;
- public function setUp() {
+ public function setUp(): void {
$this->_entity = 'Address';
parent::setUp();
return self::$filePrefix;
}
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
*
* This method is called before a test is executed.
*/
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
}
* Connect to the database, truncate the tables that will be used
* and redirect stdin to a temporary file
*/
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->individualCreate();
public $DBResetRequired = FALSE;
- public function setUp() {
+ public function setUp(): void {
$this->params = [
'title' => "campaign title",
'description' => "Call people, ask for money",
* Connect to the database, truncate the tables that will be used
* and redirect stdin to a temporary file.
*/
- public function setUp() {
+ public function setUp(): void {
$this->_entity = 'case';
parent::setUp();
* Connect to the database, truncate the tables that will be used
* and redirect stdin to a temporary file.
*/
- public function setUp() {
+ public function setUp(): void {
$this->_entity = 'case';
parent::setUp();
*/
class api_v3_CaseTypeTest extends CiviCaseTestCase {
- public function setUp() {
+ public function setUp(): void {
$this->quickCleanup(['civicrm_case_type']);
parent::setUp();
* Connect to the database, truncate the tables that will be used
* and redirect stdin to a temporary file
*/
- public function setUp() {
+ public function setUp(): void {
// Connect to the database
parent::setUp();
}
class api_v3_ContactTypeTest extends CiviUnitTestCase {
protected $_apiversion;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
$params = [
*
* @throws \CRM_Core_Exception
*/
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->contactIds[] = $this->individualCreate();
$this->params = [
/**
* @throws \CRM_Core_Exception
*/
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction();
$this->ids['contact'][0] = $this->individualCreate();
public $debug = 0;
protected $_params;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
*
* @throws \CRM_Core_Exception
*/
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->_apiversion = 3;
class api_v3_CountryTest extends CiviUnitTestCase {
protected $_params;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
$this->_params = [
protected $_apiversion = 3;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->installApi();
}
public $DBResetRequired = TRUE;
- public function setUp() {
+ public function setUp(): void {
$this->_entity = 'CustomGroup';
$this->_params = [
'title' => 'Test_Group_1',
class api_v3_CustomSearchTest extends CiviUnitTestCase {
protected $_apiversion;
- public function setUp() {
+ public function setUp(): void {
$this->_apiversion = 3;
parent::setUp();
$this->useTransaction(TRUE);
protected $CustomGroupIndividual;
protected $individualStudent;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
// Create Group For Individual Contact Type
$groupIndividual = [
public $DBResetRequired = FALSE;
- public function setUp() {
- parent::setUp();
- }
-
public function _populateOptionAndCustomGroup($type = NULL) {
$dataValues = [
'integer' => [1, 2, 3],
* Connect to the database, truncate the tables that will be used
* and redirect stdin to a temporary file
*/
- public function setUp() {
+ public function setUp(): void {
// Connect to the database
parent::setUp();
$this->useTransaction(TRUE);
* Connect to the database, truncate the tables that will be used
* and redirect stdin to a temporary file
*/
- public function setUp() {
+ public function setUp(): void {
// Connect to the database
parent::setUp();
$this->useTransaction(TRUE);
*
* This method is called before a test is executed.
*/
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
protected $_entity;
protected $_params;
- public function setUp() {
+ public function setUp(): void {
$this->_entity = 'Email';
parent::setUp();
$this->useTransaction(TRUE);
public $DBResetRequired = FALSE;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
*/
class api_v3_EntityJoinTest extends CiviUnitTestCase {
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
}
/**
* Set up permissions for test.
*/
- public function setUp() {
+ public function setUp(): void {
$this->useTransaction(TRUE);
parent::setUp();
$individualID = $this->individualCreate();
*
* @throws \CRM_Core_Exception
*/
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
protected $_apiversion;
protected $_entity;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->_apiversion = 3;
$this->_entity = 'event';
*
* This method is called before a test is executed.
*/
- protected function setUp() {
+ protected function setUp(): void {
$this->useTransaction(TRUE);
parent::setUp();
}
*/
class api_v3_ExtensionTest extends CiviUnitTestCase {
- public function setUp() {
+ public function setUp(): void {
$url = 'file://' . dirname(dirname(dirname(dirname(__FILE__)))) . '/mock/extension_browser_results';
Civi::settings()->set('ext_repo_url', $url);
}
/**
* Setup function.
*/
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->_apiversion = 3;
public $DBResetRequired = FALSE;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->ids['contact'][0] = $this->individualCreate();
$this->params = [
*
* @todo set up calls function that doesn't work @ the moment
*/
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
*
* This method is called before a test is executed.
*/
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->ids['Group'] = [];
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
- protected function setUp() {
+ protected function setUp(): void {
$this->_apiversion = 3;
parent::setUp();
$this->useTransaction(TRUE);
public $DBResetRequired = FALSE;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
*/
private $_mut;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
// DGW
CRM_Mailing_BAO_MailingJob::$mailsProcessed = 0;
*/
public $_tomorrow;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->loadReferenceDates();
$this->loadMembershipStatuses();
*/
public $customGroupID = NULL;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$customGroup = $this->customGroupCreate();
$this->customGroupID = $customGroup['id'];
*
* @throws \CRM_Core_Exception
*/
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction();
$contributionParams = [
/**
* Set up.
*/
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
}
*
* This method is called before a test is executed.
*/
- protected function setUp() {
+ protected function setUp(): void {
$this->ensureTempColIsCleanedUp();
parent::setUp();
}
public $DBResetRequired = FALSE;
- public function setUp() {
+ public function setUp(): void {
$this->params = [
'domain_id' => 1,
'name' => "my mail setting",
protected $_entity = 'MailingAB';
protected $_groupID;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
$this->createLoggedInUser();
class api_v3_MailingContactTest extends CiviUnitTestCase {
protected $_entity = 'mailing';
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$params = [
'first_name' => 'abc1',
protected $_email;
protected $_apiversion;
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
$this->_apiversion = 3;