Skip to content

Make tests stable against debug mode.#894

Merged
markstory merged 3 commits intocakephp:4.xfrom
nishimura-d:test-debug
Apr 2, 2022
Merged

Make tests stable against debug mode.#894
markstory merged 3 commits intocakephp:4.xfrom
nishimura-d:test-debug

Conversation

@nishimura-d
Copy link
Copy Markdown
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
Copy Markdown
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