Zendesk\API\LiveTests\TicketsTest::testUpdateManyWithQueryParams PHP Method

testUpdateManyWithQueryParams() public method

Tests if the client can call and build the update many tickets endpoint with the correct IDS and POST fields
public testUpdateManyWithQueryParams ( $ticket )
    public function testUpdateManyWithQueryParams($ticket)
    {
        $ticket2 = $this->createTestTicket();
        $ticketIds = [$ticket->id, $ticket2->id];
        $updatedTickets = $this->client->tickets()->updateMany(['ids' => $ticketIds, 'status' => 'solved']);
        $this->assertTrue(property_exists($updatedTickets, 'job_status'));
        $this->assertEquals('queued', $updatedTickets->job_status->status, 'Should have queued the multiple update task');
    }