Repository navigation
Test the underscore include skip with an include the row writes - #25
Merged
Merged
Conversation
The boot row asserted that includes/_disabled-example.php never loads, but the scaffold removes that file, so in every plugin made from the template the row passed even with the loader's underscore check removed. The row writes an underscore-prefixed include defining a constant and checks in a fresh request, which must exit cleanly, that the plugin booted and the constant stayed undefined; it fails once the loader's check is removed. The fresh request comes from RunsRequestsTrait in tests/Support, which PartialDeployTest's helper moves to. Assisted-by: Claude Code:claude-opus-5-5
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.
Summary
The boot row asserted that
includes/_disabled-example.phpnever loads, but the scaffold removes that file, so every plugin made from the template inherited a row that passed with the loader's underscore check removed. The row now writes its own underscore include and checks, in a fresh request that exits cleanly and boots the plugin, that it stays unloaded; the request helper moves fromPartialDeployTesttotests/Support/RunsRequestsTrait.php.Type of change
Checklist
composer changelog:add) (test-only)composer quality-checkpasses locally