From a6b674bb1aab0a6e4d4c593c985020fbef726cce Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 12 Mar 2019 13:11:15 +1300 Subject: [PATCH] Formatting cleanup --- .../phpunit/CRM/Activity/Form/SearchTest.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tests/phpunit/CRM/Activity/Form/SearchTest.php b/tests/phpunit/CRM/Activity/Form/SearchTest.php index 8777aa1b32..b3fdb796bf 100644 --- a/tests/phpunit/CRM/Activity/Form/SearchTest.php +++ b/tests/phpunit/CRM/Activity/Form/SearchTest.php @@ -9,14 +9,17 @@ class CRM_Activity_Form_SearchTest extends CiviUnitTestCase { public function setUp() { parent::setUp(); $this->individualID = $this->individualCreate(); - $this->contributionCreate(array('contact_id' => $this->individualID, 'receive_date' => '2017-01-30')); + $this->contributionCreate([ + 'contact_id' => $this->individualID, + 'receive_date' => '2017-01-30', + ]); } public function tearDown() { - $tablesToTruncate = array( + $tablesToTruncate = [ 'civicrm_activity', 'civicrm_activity_contact', - ); + ]; $this->quickCleanup($tablesToTruncate); } @@ -32,7 +35,8 @@ class CRM_Activity_Form_SearchTest extends CiviUnitTestCase { $form->postProcess(); $qfKey = $form->controller->_key; $rows = $form->controller->get('rows'); - $this->assertEquals(array(array( + $this->assertEquals([ + [ 'contact_id' => '3', 'contact_type' => '
', 'sort_name' => 'Anderson, Anthony', @@ -46,8 +50,8 @@ class CRM_Activity_Form_SearchTest extends CiviUnitTestCase { 'activity_type_id' => '6', 'activity_type' => 'Contribution', 'activity_is_test' => '0', - 'target_contact_name' => array(), - 'assignee_contact_name' => array(), + 'target_contact_name' => [], + 'assignee_contact_name' => [], 'source_contact_id' => '3', 'source_contact_name' => 'Anderson, Anthony', 'checkbox' => 'mark_x_1', @@ -56,7 +60,8 @@ class CRM_Activity_Form_SearchTest extends CiviUnitTestCase { 'campaign' => NULL, 'campaign_id' => NULL, 'repeat' => '', - )), $rows); + ], + ], $rows); } } -- 2.25.1