App\Test\TestCase\ApplicationTest::testBootstrap
DebugKit should not be added in production.
App\Test\TestCase\Controller\PagesControllerTest::testMultipleGet
Added at ec4b498c16eb32c6283a14fdd610305d067674ae.
This seems test PHP_SELF in tests/bootstrap.php, but now it is not required. https://github.com/cakephp/cakephp/pull/12076
Still need this test?
App\Test\TestCase\Controller\PagesControllerTest::testDisplay
Will be resolved by adding Configure::write('debug', true);
This repository does not have pages displayed in production.
App\Test\TestCase\Controller\PagesControllerTest::testCsrfAppliedOk
CSRF protection should be applied in production too.
How about asserting the status is not 403?
This is a (multiple allowed):
[x] bug
[ ] enhancement
[ ] feature-discussion (RFC)
CakePHP Application Skeleton Version: 4.3.1
What you did
'debug' => false
(or remove this and do not setDEBUG
environment variable)What happened
What you expected to happen
No failures.
Testing in production environment is nonsense, but testing production behavior is significant. Some test cases set debug mode by itself. https://github.com/cakephp/app/blob/a151dcfd8cf0298d01576d2a3009c48d59bb1878/tests/TestCase/Controller/PagesControllerTest.php#L79
PHP_SELF
in tests/bootstrap.php, but now it is not required. https://github.com/cakephp/cakephp/pull/12076 Still need this test?Configure::write('debug', true);
This repository does not have pages displayed in production.