$refresh
$refresh : boolean
Should the db be refreshed before each test?
Class FeatureTestCase
Provides additional utilities for doing full HTTP testing against your application.
$db : \CodeIgniter\Database\BaseConnection
Our database connection.
$seeder : \CodeIgniter\Database\Seeder
Seeder instance
$routes : \CodeIgniter\Router\RouteCollection
If present, will override application routes when using call().
seeNumRecords(integer $expected, string $table, array $where) : boolean
Asserts that the number of rows in the database that match $where is equal to $expected.
| integer | $expected | |
| string | $table | |
| array | $where | 
call(string $method, string $path, array|null $params = null) : \CodeIgniter\Test\FeatureResponse
Calls a single URI, executes it, and returns a FeatureResponse instance that can be used to run many assertions against.
| string | $method | |
| string | $path | |
| array|null | $params | 
get(string $path, array|null $params = null) : \CodeIgniter\Test\FeatureResponse
Performs a GET request.
| string | $path | |
| array|null | $params | 
post(string $path, array|null $params = null) : \CodeIgniter\Test\FeatureResponse
Performs a POST request.
| string | $path | |
| array|null | $params | 
put(string $path, array|null $params = null) : \CodeIgniter\Test\FeatureResponse
Performs a PUT request
| string | $path | |
| array|null | $params | 
patch(string $path, array|null $params = null) : \CodeIgniter\Test\FeatureResponse
Performss a PATCH request
| string | $path | |
| array|null | $params | 
delete(string $path, array|null $params = null) : \CodeIgniter\Test\FeatureResponse
Performs a DELETE request.
| string | $path | |
| array|null | $params | 
options(string $path, array|null $params = null) : \CodeIgniter\Test\FeatureResponse
Performs an OPTIONS request.
| string | $path | |
| array|null | $params | 
setupRequest(string $method, string|null $path = null, array|null $params = null) : \CodeIgniter\HTTP\IncomingRequest
Setup a Request object to use so that CodeIgniter won't try to auto-populate some of the items.
| string | $method | |
| string|null | $path | |
| array|null | $params | 
populateGlobals(string $method, \CodeIgniter\HTTP\Request $request, array|null $params = null) : \CodeIgniter\HTTP\Request
Populates the data of our Request with "global" data relevant to the request, like $_POST data.
Always populate the GET vars based on the URI.
| string | $method | |
| \CodeIgniter\HTTP\Request | $request | |
| array|null | $params |