Merge pull request #17253 from mattwire/utf8convertblocksize
[civicrm-core.git] / tests / phpunit / CRM / Core / BAO / OpenIDTest.php
index ffa02b7af137cb8bd475f0856724444f3976804c..1d0886b5c4615af613339129257fd4030350a4c9 100644 (file)
@@ -5,6 +5,7 @@
  * @group headless
  */
 class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase {
+
   public function tearDown() {
     // If we truncate only contact, then stale domain and openid records will be left.
     // If we truncate none of these tables, then contactDelete() will incrementally
@@ -25,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);
 
@@ -42,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);
 
@@ -69,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);
 
@@ -88,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);
 
@@ -115,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);
 
@@ -132,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;