Class LegacyRequestDispatcher
Dispatches a request capturing the response for integration testing purposes into the Routing\Dispatcher stack.
Namespace: Cake\TestSuite
Property Summary
-
$_test protected
Cake\TestSuite\IntegrationTestCase
Method Summary
-
__construct() public
Constructor
-
execute() public
Run a request and get the response.
-
resolveUrl() public
Resolve the user provided URL into the actual request URL.
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): string|null
Run a request and get the response.
Parameters
-
array
$request The request context to execute.
Returns
string|null
resolveUrl() ¶ public
resolveUrl(array|string $url): string
Resolve the user provided URL into the actual request URL.
Parameters
-
array|string
$url The URL array/string to resolve.
Returns
string