00c7d3f406bc89efdb143a987471122761268bb0
4 * Class CRM_Utils_RestTest
7 class CRM_Utils_RestTest
extends CiviUnitTestCase
{
9 public function setUp() {
13 public function testProcessMultiple() {
14 $_SERVER['REQUEST_METHOD'] = 'POST';
20 'contact_type' => 'Individual',
21 'first_name' => 'Cow',
28 'contact_type' => 'Individual',
29 'first_name' => 'Sheep',
33 $_REQUEST['json'] = json_encode($input);
34 $output = CRM_Utils_REST
::processMultiple();
35 $this->assertGreaterThan(0, $output['cow']['id']);
36 $this->assertGreaterThan($output['cow']['id'], $output['sheep']['id']);