X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCRM%2FCore%2FBAO%2FOpenIDTest.php;h=1d0886b5c4615af613339129257fd4030350a4c9;hb=ddc7d6e7b3777edccc734a19dc9d59d837693fdc;hp=313fbe0ac49a2fe6afa409148aa41f95ae161335;hpb=e71360126e438a313d4ab86524a462e01e0efdfa;p=civicrm-core.git diff --git a/tests/phpunit/CRM/Core/BAO/OpenIDTest.php b/tests/phpunit/CRM/Core/BAO/OpenIDTest.php index 313fbe0ac4..1d0886b5c4 100644 --- a/tests/phpunit/CRM/Core/BAO/OpenIDTest.php +++ b/tests/phpunit/CRM/Core/BAO/OpenIDTest.php @@ -26,12 +26,12 @@ class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase { $this->assertDBRowExist('CRM_Contact_DAO_Contact', $contactId); $openIdURL = "http://test-username.civicrm.org/"; - $params = array( + $params = [ 'contact_id' => $contactId, 'location_type_id' => 1, 'openid' => $openIdURL, 'is_primary' => 1, - ); + ]; $openObject = CRM_Core_BAO_OpenID::add($params); @@ -43,13 +43,13 @@ class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase { // Now call add() to modify an existing open-id record - $params = array( + $params = [ 'id' => $openId, 'contact_id' => $contactId, 'openid' => $openIdURL, 'is_bulkmail' => 1, 'allowed_to_login' => 1, - ); + ]; CRM_Core_BAO_OpenID::add($params); @@ -70,12 +70,12 @@ class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase { $this->assertDBRowExist('CRM_Contact_DAO_Contact', $contactId); $openIdURL = "http://test-username.civicrm.org/"; - $params = array( + $params = [ 'contact_id' => $contactId, 'location_type_id' => 1, 'openid' => $openIdURL, 'is_primary' => 1, - ); + ]; $openObject = CRM_Core_BAO_OpenID::add($params); @@ -89,13 +89,13 @@ class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase { // Now call add() to modify an existing open-id record - $params = array( + $params = [ 'id' => $openId, 'contact_id' => $contactId, 'openid' => $openIdURL, 'is_bulkmail' => 1, 'allowed_to_login' => 1, - ); + ]; CRM_Core_BAO_OpenID::add($params); @@ -116,13 +116,13 @@ class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase { // create first openid $openIdURLOne = "http://test-one-username.civicrm.org/"; - $params = array( + $params = [ 'contact_id' => $contactId, 'location_type_id' => 1, 'openid' => $openIdURLOne, 'is_primary' => 1, 'allowed_to_login' => 1, - ); + ]; $openObjectOne = CRM_Core_BAO_OpenID::add($params); @@ -133,11 +133,11 @@ class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase { // create second openid $openIdURLTwo = "http://test-two-username.civicrm.org/"; - $params = array( + $params = [ 'contact_id' => $contactId, 'location_type_id' => 1, 'openid' => $openIdURLTwo, - ); + ]; $openObjectTwo = CRM_Core_BAO_OpenID::add($params); $openIdTwo = $openObjectTwo->id;