Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tests stable against debug mode. #894

Merged
merged 3 commits into from
Apr 2, 2022
Merged

Conversation

nishimura-d
Copy link
Contributor

Fixes #893

The problem is resolved at CakePHP 3.6.3.
Remove a test added at
ec4b498.

Refs cakephp#893
Run testDisplay in debug mode.
Pages in this repo can only be displayed in debug mode.

Do not assert normal responses at testCsrfAppliedOk.
Responses may change by debug mode,
but that is not a concern of this test.
Assert the opposite of testCsrfAppliedError.

Refs cakephp#893
Make testBootstrap run in production mode,
and add a case to test bootstrap in debug mode.
DebugKit should not be added in production,
but should be added in debug mode.

Refs cakephp#893
@markstory markstory merged commit 0b2a1e7 into cakephp:4.x Apr 2, 2022
@markstory markstory added this to the 4.x milestone Apr 2, 2022
@markstory
Copy link
Member

Thank you 👍

@nishimura-d nishimura-d deleted the test-debug branch April 8, 2022 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests fail not in debug mode
2 participants