Property | Type | Description | |
---|---|---|---|
$client | |||
$hostname | string | ||
$mockedTransactionsContainer | array | ||
$oAuthToken | string | ||
$password | string | ||
$port | string | ||
$scheme | string | ||
$subdomain | string | ||
$token | string |
Method | Description | |
---|---|---|
__construct ( $name = null, array $data = [], $dataName = '' ) | ||
assertLastRequestIs ( $options ) | This checks the last request sent | |
assertRequestIs ( $options, integer $index ) | This checks the response with the given index |
Method | Description | |
---|---|---|
assertEndpointCalled ( $userFunction, $endpoint, string $method = 'GET', $additionalAsserts = [] ) | Test for the endpoint using the given method and endpoint | |
mockApiResponses ( array $responses = [] ) | This will mock the next responses sent via guzzle | |
setUp ( ) | Sets up the fixture, for example, open a network connection. |
public __construct ( $name = null, array $data = [], $dataName = '' ) | ||
$data | array |
protected assertEndpointCalled ( $userFunction, $endpoint, string $method = 'GET', $additionalAsserts = [] ) | ||
$userFunction | ||
$endpoint | - An array containing [request method, endpoint path] | |
$method | string |
public assertLastRequestIs ( $options ) | ||
$options |
public assertRequestIs ( $options, integer $index ) | ||
$options | ||
$index | integer |
protected mockApiResponses ( array $responses = [] ) | ||
$responses | array | An array of GuzzleHttp\Psr7\Response objects |
protected HttpClient,Zendesk\API $client | ||
return |
protected array $mockedTransactionsContainer | ||
return | array |