enablePluginLoadingForTests(string|null $configPath = null): void
Helper function to load plugin configuration for tests.
This function reads plugin configuration from a plugins.php file and stores it in the application configuration for later use by test cases.
Usage:
// In your tests/bootstrap.php file:
\Cake\TestSuite\enablePluginLoadingForTests();
string|null
$configPath
optional
The path to the config directory. Defaults to CONFIG.
voidRuntimeExceptionHelper for managing test connections
Dispatches a request capturing the response for integration testing purposes into the Cake\Http stack.
Cake TestCase class
TestEmailTransport
Read only access to the session during testing.
Make assertions on emails sent through the Cake\TestSuite\TestEmailTransport
A trait intended to make integration tests of your controllers easier.
Make assertions on logs
Compare a string to the contents of a file