X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCRM%2FUtils%2FRestTest.php;h=00c7d3f406bc89efdb143a987471122761268bb0;hb=435a9dcdb3a6518b2e8347bb2828f0c568191439;hp=55ee7784de92a896376c5637a18865c442864604;hpb=5d867d83ac582e4c45417c82610d569100d6da43;p=civicrm-core.git diff --git a/tests/phpunit/CRM/Utils/RestTest.php b/tests/phpunit/CRM/Utils/RestTest.php index 55ee7784de..00c7d3f406 100644 --- a/tests/phpunit/CRM/Utils/RestTest.php +++ b/tests/phpunit/CRM/Utils/RestTest.php @@ -1,8 +1,8 @@ array( + $input = [ + 'cow' => [ 'contact', 'create', - array( + [ 'contact_type' => 'Individual', 'first_name' => 'Cow', - ), - ), - 'sheep' => array( + ], + ], + 'sheep' => [ 'contact', 'create', - array( + [ 'contact_type' => 'Individual', 'first_name' => 'Sheep', - ), - ), - ); + ], + ], + ]; $_REQUEST['json'] = json_encode($input); $output = CRM_Utils_REST::processMultiple(); $this->assertGreaterThan(0, $output['cow']['id']);