CronsTest
extends CloudApiTestCase
in
Class CloudApiTestCase
Table of Contents
| $properties | ||
|---|---|---|
| testGetAllCrons() | mixed | |
| testGetCron() | mixed | |
| testCreateCron() | mixed | |
| testUpdateCron() | mixed | |
| testDeleteCron() | mixed | |
| testEnableCron() | mixed | |
| testDisableCron() | mixed | |
| getPsr7StreamForFixture() | Returns a PSR7 Stream for a given fixture. | Stream |
| getPsr7JsonResponseForFixture() | Returns a PSR7 Response (JSON) for a given fixture. | Response |
| getPsr7GzipResponseForFixture() | Returns a PSR7 Response (Gzip) for a given fixture. | Response |
| getMockClient() | Mock client class. | Client |
Properties
$properties
public
mixed
$properties
= ['id', 'server', 'command', 'minute', 'hour', 'dayMonth', 'month', 'dayWeek', 'label', 'flags', 'environment', 'links']
Methods
testGetAllCrons()
public
testGetAllCrons(
)
: mixed
Return values
mixedtestGetCron()
public
testGetCron(
)
: mixed
Return values
mixedtestCreateCron()
public
testCreateCron(
)
: mixed
Return values
mixedtestUpdateCron()
public
testUpdateCron(
)
: mixed
Return values
mixedtestDeleteCron()
public
testDeleteCron(
)
: mixed
Return values
mixedtestEnableCron()
public
testEnableCron(
)
: mixed
Return values
mixedtestDisableCron()
public
testDisableCron(
)
: mixed
Return values
mixedgetPsr7StreamForFixture()
Returns a PSR7 Stream for a given fixture.
protected
getPsr7StreamForFixture(
$fixture :
string
)
: Stream
Parameters
- $fixture : string
The fixture to create the stream for.
Return values
StreamgetPsr7JsonResponseForFixture()
Returns a PSR7 Response (JSON) for a given fixture.
protected
getPsr7JsonResponseForFixture(
$fixture :
string
[, $statusCode :
int
= 200 ]
)
: Response
Parameters
- $fixture : string
The fixture to create the response for.
- $statusCode : int = 200
A HTTP Status Code for the response.
Return values
ResponsegetPsr7GzipResponseForFixture()
Returns a PSR7 Response (Gzip) for a given fixture.
protected
getPsr7GzipResponseForFixture(
$fixture :
string
[, $statusCode :
int
= 200 ]
)
: Response
Parameters
- $fixture : string
The fixture to create the response for.
- $statusCode : int = 200
A HTTP Status Code for the response.
Return values
ResponsegetMockClient()
Mock client class.
protected
getMockClient(
[ $response :
mixed
= '' ]
)
: Client
Parameters
- $response : mixed = ''