$_test
$_test : \Cake\TestSuite\IntegrationTestCase
The test case being run.
Dispatches a request capturing the response for integration testing purposes into the Cake\Http stack.
$_test : \Cake\TestSuite\IntegrationTestCase
The test case being run.
$app : \Cake\Core\HttpApplicationInterface
The application that is being dispatched.
__construct(\Cake\TestSuite\IntegrationTestCase $test, string|null $class = null, array|null $constructorArgs = null, boolean $disableRouterReload = false)
Constructor
\Cake\TestSuite\IntegrationTestCase | $test | The test case to run. |
string|null | $class | The application class name. Defaults to App\Application. |
array|null | $constructorArgs | The constructor arguments for your application class.
Defaults to |
boolean | $disableRouterReload | Disable Router::reload() call when resolving URLs. This flag may be necessary if you are using Router methods in your test case setup, and using array URLs when doing requests in your tests. |
If it cannot load class for use in integration testing.
execute(array $requestSpec) : \Psr\Http\Message\ResponseInterface
Run a request and get the response.
array | $requestSpec | The request spec to execute. |
The generated response.
_createRequest(array $spec) : \Psr\Http\Message\ServerRequestInterface
Create a PSR7 request from the request spec.
array | $spec | The request spec. |
Loading…