projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #15884 from kainuk/issue-lab-1365
[civicrm-core.git]
/
tests
/
phpunit
/
CRM
/
Utils
/
DeprecatedUtilsTest.php
diff --git
a/tests/phpunit/CRM/Utils/DeprecatedUtilsTest.php
b/tests/phpunit/CRM/Utils/DeprecatedUtilsTest.php
index e202473a214b5eed1258aa55f6a729dc54dfcf61..2cb51c4195224b1d36a2d8593762a4641ff4873a 100644
(file)
--- a/
tests/phpunit/CRM/Utils/DeprecatedUtilsTest.php
+++ b/
tests/phpunit/CRM/Utils/DeprecatedUtilsTest.php
@@
-14,12
+14,12
@@
class CRM_Utils_DeprecatedUtilsTest extends CiviUnitTestCase {
public function tearDown() {
// truncate a few tables
public function tearDown() {
// truncate a few tables
- $tablesToTruncate =
array(
+ $tablesToTruncate =
[
'civicrm_contact',
'civicrm_email',
'civicrm_contribution',
'civicrm_website',
'civicrm_contact',
'civicrm_email',
'civicrm_contribution',
'civicrm_website',
-
)
;
+
]
;
$this->quickCleanup($tablesToTruncate);
}
$this->quickCleanup($tablesToTruncate);
}
@@
-28,7
+28,7
@@
class CRM_Utils_DeprecatedUtilsTest extends CiviUnitTestCase {
* Test civicrm_contact_check_params with no contact type.
*/
public function testCheckParamsWithNoContactType() {
* 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']);
}
$contact = _civicrm_api3_deprecated_contact_check_params($params, FALSE);
$this->assertEquals(1, $contact['is_error']);
}
@@
-58,7
+58,7
@@
class CRM_Utils_DeprecatedUtilsTest extends CiviUnitTestCase {
* params and no params
*/
public function testCheckParamsWithNoParams() {
* 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']);
}
$contact = _civicrm_api3_deprecated_contact_check_params($params, FALSE);
$this->assertEquals(1, $contact['is_error']);
}