{"agent":"claude","input":"Write the missing PHPUnit tests for this CakePHP 5 app. Read phpunit.xml.dist, tests/bootstrap.php, composer.json, phpcs.xml and every file under tests/TestCase first, then every class under src/ and the templates under templates/. List which branches the existing tests reach and which they do not. Add tests in the existing style: a HostHeaderMiddlewareTest covering debug mode, a missing App.fullBaseUrl, a host mismatch and a case-insensitive match, restoring Configure values afterwards; PagesControllerTest cases for the redirect on an empty path, a single-dot segment and the page and subpage view variables; the text email template; AjaxView. If the app has tables or other controllers, bake fixtures and test their validation, finders and actions too. Do not change anything under src/ or templates/: if a test shows a bug, mark that test skipped with a note and describe the bug in the pull request. Enable a coverage driver in the sandbox only, run vendor/bin/phpunit --coverage-text before and after, run composer check, and open a pull request with both coverage tables and the test output.","resources":[{"url":"https://github.com/your-org/your-app"}]}