Class LegacyRequestDispatcher

Dispatches a request capturing the response for integration testing purposes into the Routing\Dispatcher stack.

Namespace: Cake\TestSuite

Properties summary

  • $_test protected
    \Cake\TestSuite\IntegrationTestCase

Method Summary

Method Detail

__construct() public

__construct(mixed $test)

Constructor

Parameters

\Cake\TestSuite\IntegrationTestCase $test

The test case to run.

execute() public

execute(mixed $request)

Run a request and get the response.

Parameters

array $request

The request context to execute.

Returns

string|null

The generated response.

resolveUrl() public

resolveUrl(mixed $url)

Resolve the user provided URL into the actual request URL.

Parameters

array|string $url

The URL array/string to resolve.

Returns

string

Property Detail

$_test protected

Type

\Cake\TestSuite\IntegrationTestCase

© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.9/class-Cake.TestSuite.LegacyRequestDispatcher.html