Repository navigation
[#3230] Cleared inherited 'CLAMAV_' variables in the settings tests. - #3231
Merged
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
|
Code coverage (threshold: 90%) Per-class coverage |
This comment has been minimized.
This comment has been minimized.
1 similar comment
Member
Author
|
Code coverage (threshold: 90%) Per-class coverage |
|
📖 Documentation preview for this pull request has been deployed to Netlify: https://6ad9984b8c14a5f20337cd73--vortex-docs.netlify.app This preview is rebuilt on every commit and is not the production documentation site. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3231 +/- ##
==========================================
- Coverage 92.28% 92.09% -0.20%
==========================================
Files 113 105 -8
Lines 5097 4931 -166
Branches 49 3 -46
==========================================
- Hits 4704 4541 -163
+ Misses 393 390 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
AlexSkrypnyk
added a commit
that referenced
this pull request
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3230
Summary
SettingsTestCase::setEnvVars()now unsets inheritedCLAMAV_*environment variables before each settings test, because'CLAMAV_'is inSettingsTestCase::ALLOWED_ENV_VARSalongside'REDIS_'.settings.clamav.phpreadsCLAMAV_HOSTandCLAMAV_PORTwithclamavand3310as fallbacks, but the prefix list never cleared them. When either variable was exported in the shell or CI job that ran PHPUnit, thedaemon mode with defaultscase inSwitchableSettingsTest::dataProviderClamav()read that value instead of the default it asserts, and failed onmode_daemon_tcpip.hostname.The ClamAV cases now pass regardless of what the caller's environment holds, and cases that set
CLAMAV_HOST/CLAMAV_PORTexplicitly still get their values.settings.clamav.phpand the test data providers are untouched; the installer fixtures that carry their own copy ofSettingsTestCase.php(baseline, the migration variants and the Acquia hosting variants) are regenerated to match.Before / After
Changes
tests/phpunit/Drupal/SettingsTestCase.php- added'CLAMAV_'toALLOWED_ENV_VARSunder the service variables..vortex/installer/tests/Fixtures/handler_process/*/tests/phpunit/Drupal/SettingsTestCase.php- regenerated snapshots for_baseline, themigration_*scenarios,tools_no_dclint_migrationand the 2 Acquia hosting scenarios (the Acquia diffs only shift their hunk line numbers by 1).Summary by CodeRabbit