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

testFindSingle() public method

Tests if the client can call and build the find ticket endpoint
public testFindSingle ( $ticket )
    public function testFindSingle($ticket)
    {
        $response = $this->client->tickets()->find($ticket->id);
        foreach (['id', 'subject', 'description', 'priority'] as $property) {
            $this->assertTrue(property_exists($response->ticket, $property));
            $this->assertEquals($ticket->{$property}, $response->ticket->{$property});
        }
    }