public function tearDown() {
// truncate a few tables
- $tablesToTruncate = array(
+ $tablesToTruncate = [
'civicrm_contact',
'civicrm_email',
'civicrm_contribution',
'civicrm_website',
- );
+ ];
$this->quickCleanup($tablesToTruncate);
}
* Test civicrm_contact_check_params with no contact type.
*/
public function testCheckParamsWithNoContactType() {
- $params = array('foo' => 'bar');
+ $params = ['foo' => 'bar'];
$contact = _civicrm_api3_deprecated_contact_check_params($params, FALSE);
$this->assertEquals(1, $contact['is_error']);
}
* params and no params
*/
public function testCheckParamsWithNoParams() {
- $params = array();
+ $params = [];
$contact = _civicrm_api3_deprecated_contact_check_params($params, FALSE);
$this->assertEquals(1, $contact['is_error']);
}