Autoformat /tests directory with php short array syntax
[civicrm-core.git] / tests / phpunit / CRM / Contact / Import / Form / DataSourceTest.php
index 5eaaf73c16639c75639c906be180aac83c316cb8..43cd5b913d50746c4dd7bc792b6ba8d6c248d990 100644 (file)
@@ -44,10 +44,10 @@ class CRM_Contact_Import_Form_DataSourceTest extends CiviUnitTestCase {
    * (Added in conjunction with fixed noting on mapping assignment).
    */
   public function testBuildForm() {
-    $this->callAPISuccess('Mapping', 'create', array('name' => 'Well dressed ducks', 'mapping_type_id' => 'Import Contact'));
+    $this->callAPISuccess('Mapping', 'create', ['name' => 'Well dressed ducks', 'mapping_type_id' => 'Import Contact']);
     $form = $this->getFormObject('CRM_Contact_Import_Form_DataSource');
     $form->buildQuickForm();
-    $this->assertEquals(array(1 => 'Well dressed ducks'), CRM_Core_Smarty::singleton()->get_template_vars('savedMapping'));
+    $this->assertEquals([1 => 'Well dressed ducks'], CRM_Core_Smarty::singleton()->get_template_vars('savedMapping'));
   }
 
 }