Class LegacyRequestDispatcher
Dispatches a request capturing the response for integration testing purposes into the Routing\Dispatcher stack.
Namespace: Cake\TestSuite
Method Summary
-
__construct() public
Constructor
-
execute() public
Run a request and get the response.
Method Detail
__construct() ¶ public
__construct(Cake\TestSuite\IntegrationTestCase $test)
Constructor
Parameters
-
Cake\TestSuite\IntegrationTestCase
$test The test case to run.
execute() ¶ public
execute(array $request): Cake\Network\Response
Run a request and get the response.
Parameters
-
array
$request The request context to execute.
Returns
Cake\Network\Response