PHP 클래스 Zendesk\API\LiveTests\TicketsTest

상속: extends Zendesk\API\LiveTests\BasicTest
파일 보기 프로젝트 열기: zendesk/zendesk_api_client_php

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
createTestTicket ( array $extraParams = [] ) : mixed Create a test ticket

메소드 상세

testAssignTicketToGroup() 공개 메소드

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

testCollaborators() 공개 메소드

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

testCreateTicket() 공개 메소드

Test creating of ticket
public testCreateTicket ( )

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() 공개 메소드

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

testDeleteMultiple() 공개 메소드

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

testFindAll() 공개 메소드

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

testFindMultiple() 공개 메소드

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

testFindSingle() 공개 메소드

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

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
public testIncidents ( )

testRelated() 공개 메소드

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

testUpdate() 공개 메소드

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

testUpdateManyWithQueryParams() 공개 메소드

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