Skip to content

fix: unset encryption.key variables in RunInSeparateProcess tests #9670

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

Merged

Conversation

paulbalandan
Copy link
Member

Description
I have a .env with a generated encryption key. Running vendor/bin/phpunit --group SeparateProcess fails because the two tests pick up the encryption key from my .env instead of the injected .env file.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@paulbalandan paulbalandan added the testing Pull requests that changes tests only label Aug 11, 2025
@paulbalandan paulbalandan force-pushed the test-separate-process branch 2 times, most recently from 5b58098 to 35e43da Compare August 11, 2025 16:27
@paulbalandan paulbalandan force-pushed the test-separate-process branch from 35e43da to f1d3bd0 Compare August 11, 2025 18:16
@paulbalandan paulbalandan merged commit 343b6f7 into codeigniter4:develop Aug 12, 2025
47 checks passed
@paulbalandan paulbalandan deleted the test-separate-process branch August 12, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Pull requests that changes tests only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants