4 * Class CRM_Utils_RestTest
6 class CRM_Utils_RestTest
extends CiviUnitTestCase
{
8 public function setUp() {
12 public function testProcessMultiple() {
13 $_SERVER['REQUEST_METHOD'] = 'POST';
19 'contact_type' => 'Individual',
20 'first_name' => 'Cow',
27 'contact_type' => 'Individual',
28 'first_name' => 'Sheep',
32 $_REQUEST['json'] = json_encode($input);
33 $output = CRM_Utils_REST
::processMultiple();
34 $this->assertGreaterThan(0, $output['cow']['id']);
35 $this->assertGreaterThan($output['cow']['id'], $output['sheep']['id']);