Property | Type | Description | |
---|---|---|---|
$fixtures | array | fixtures property | |
$tableClass | string | Table class to mock on |
Method | Description | |
---|---|---|
apiGetHttpMethodProvider ( ) : array | Data provider with GET and DELETE verbs | |
apiUpdateHttpMethodProvider ( ) : array | Data provider with PUT and POST verbs | |
testActionGet ( ) : void | Test the normal HTTP GET flow of _get | |
testActionGetWithQueryArgs ( ) : void | Test the normal HTTP GET flow of _get with query args | |
testActionPost ( ) : void | Test POST will create a record | |
testActionPostErrorSave ( ) : void | Test POST with unsuccessful save() | |
testActionPostValidationErrors ( ) : void | Test POST with validation errors | |
testActionPostWithAddRedirect ( ) : void | Test POST will create a record and redirect to /blogs/add again if _POST['_add'] is present | |
testActionPostWithEditRedirect ( ) : void | Test POST will create a record and redirect to /blogs/edit/$id if _POST['_edit'] is present | |
testApiCreate ( string $method ) : void | Test POST & PUT verbs using API Listener | |
testApiCreateError ( string $method ) : void | Test POST & PUT verbs using API Listener with data validation error | |
testApiCreateErrors ( string $method ) : void | Test POST & PUT verbs using API Listener with data validation errors | |
testApiGet ( string $method ) : void | Test HTTP & DELETE verbs using API Listener |
public apiGetHttpMethodProvider ( ) : array | ||
return | array |
public apiUpdateHttpMethodProvider ( ) : array | ||
return | array |
public testActionGet ( ) : void | ||
return | void |
public testActionGetWithQueryArgs ( ) : void | ||
return | void |
public testActionPost ( ) : void | ||
return | void |
public testActionPostErrorSave ( ) : void | ||
return | void |
public testActionPostValidationErrors ( ) : void | ||
return | void |
public testActionPostWithAddRedirect ( ) : void | ||
return | void |
public testActionPostWithEditRedirect ( ) : void | ||
return | void |
public testApiCreate ( string $method ) : void | ||
$method | string | |
return | void |
public testApiCreateError ( string $method ) : void | ||
$method | string | |
return | void |
public testApiCreateErrors ( string $method ) : void | ||
$method | string | |
return | void |
public testApiGet ( string $method ) : void | ||
$method | string | |
return | void |