4 * Class CRM_Utils_RestTest
7 class CRM_Utils_RestTest
extends CiviUnitTestCase
{
9 public function testProcessMultiple() {
10 $_SERVER['REQUEST_METHOD'] = 'POST';
16 'contact_type' => 'Individual',
17 'first_name' => 'Cow',
24 'contact_type' => 'Individual',
25 'first_name' => 'Sheep',
29 $_REQUEST['json'] = json_encode($input);
30 $output = CRM_Utils_REST
::processMultiple();
31 $this->assertGreaterThan(0, $output['cow']['id']);
32 $this->assertGreaterThan($output['cow']['id'], $output['sheep']['id']);