PHP Class Zendesk\API\LiveTests\TicketsTest

Inheritance: extends Zendesk\API\LiveTests\BasicTest
Afficher le fichier Open project: zendesk/zendesk_api_client_php

Méthodes publiques

Méthode Description
testAssignTicketToGroup ( ) Test if a ticket with a group_id is assigned to the correct group.
testCollaborators ( $ticket ) Tests if the client can call and build the ticket collaborators endpoint with the correct ID
testCreateTicket ( ) Test creating of ticket
testCreateWithAttachment ( ) Tests if the client can call and build the create ticket witch attachment endpoint and initiate the file upload headers and POST data
testDelete ( $ticket ) Tests if the client can call and build the delete tickets endpoint This will throw an exception if it fails
testDeleteMultiple ( $ticket ) Tests if the client can call and build the delete many tickets endpoint with the correct IDs
testFindAll ( $ticket ) Tests if the client can call and build the tickets endpoint with the proper sideloads
testFindMultiple ( $ticket ) Tests if the client can call and build the show many tickets endpoint with the correct IDs
testFindSingle ( $ticket ) Tests if the client can call and build the find ticket endpoint
testHandlesApiException ( ) Test we can handle api exceptions, by finding a non-existing ticket
testIncidents ( ) Tests if the client can call and build the tickets incidents endpoint with the correct ID
testRelated ( $ticket ) Tests if the client can call and build the related tickets endpoint with the correct ID
testUpdate ( $ticket ) Tests if the client can update tickets
testUpdateManyWithQueryParams ( $ticket ) Tests if the client can call and build the update many tickets endpoint with the correct IDS and POST fields

Private Methods

Méthode Description
createTestTicket ( array $extraParams = [] ) : mixed Create a test ticket

Method Details

testAssignTicketToGroup() public méthode

Test if a ticket with a group_id is assigned to the correct group.

testCollaborators() public méthode

Tests if the client can call and build the ticket collaborators endpoint with the correct ID
public testCollaborators ( $ticket )

testCreateTicket() public méthode

Test creating of ticket
public testCreateTicket ( )

testCreateWithAttachment() public méthode

Tests if the client can call and build the create ticket witch attachment endpoint and initiate the file upload headers and POST data

testDelete() public méthode

Tests if the client can call and build the delete tickets endpoint This will throw an exception if it fails
public testDelete ( $ticket )

testDeleteMultiple() public méthode

Tests if the client can call and build the delete many tickets endpoint with the correct IDs
public testDeleteMultiple ( $ticket )

testFindAll() public méthode

Tests if the client can call and build the tickets endpoint with the proper sideloads
public testFindAll ( $ticket )

testFindMultiple() public méthode

Tests if the client can call and build the show many tickets endpoint with the correct IDs
public testFindMultiple ( $ticket )

testFindSingle() public méthode

Tests if the client can call and build the find ticket endpoint
public testFindSingle ( $ticket )

testHandlesApiException() public méthode

Test we can handle api exceptions, by finding a non-existing ticket

testIncidents() public méthode

Tests if the client can call and build the tickets incidents endpoint with the correct ID
public testIncidents ( )

testRelated() public méthode

Tests if the client can call and build the related tickets endpoint with the correct ID
public testRelated ( $ticket )

testUpdate() public méthode

Tests if the client can update tickets
public testUpdate ( $ticket )

testUpdateManyWithQueryParams() public méthode

Tests if the client can call and build the update many tickets endpoint with the correct IDS and POST fields
public testUpdateManyWithQueryParams ( $ticket )