Skip to content

Test the underscore include skip in Internal Comments and Linked Orders - #25

Merged
ahegyes merged 2 commits into
trunkfrom
fix/underscore-include-rows
Nov 1, 2026
Merged

ahegyes merged 2 commits into
trunkfrom
fix/underscore-include-rows

Conversation

@ahegyes

@ahegyes ahegyes commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Summary

Internal Comments' boot row asserted that includes/_disabled-example.php never loads, but the file does not exist, so the row passed with the loader's underscore check removed; it now writes its own underscore include, as Linked Orders' row does. Both rows check, in a fresh request that exits cleanly, that the plugin booted and the include stayed unloaded, through RunsRequestsTrait, which moves from each PartialDeployTest to tests/Support/. Test-only; it merges cleanly with #24.

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Build / CI / tooling
  • Documentation
  • Dependency update

Checklist

  • Changelog fragment added (composer changelog:add in the changed plugin's directory, or at the root for the monorepo itself) (test-only)
  • Tests added/updated
  • composer quality-check passes locally in every changed plugin
  • Plugin header and readme.txt updated if runtime requirements changed (unchanged)

The boot row asserted that includes/_disabled-example.php never loads,
but no such file exists, so 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
The row read "skipped" from a fresh request whenever the constant the
underscore include defines stayed undefined, which also happens when
the plugin never loads or boots in that request or the include was
never written, so the row could pass without testing the loader.

The row checks the write and prints "not booted" unless the plugin's
boot succeeded, through RunsRequestsTrait in tests/Support, which
PartialDeployTest's helper moves to; the request's exit status is
still checked.

Assisted-by: Claude Code:claude-opus-5-5
@ahegyes ahegyes changed the title Fix/underscore include rows Test the underscore include skip in Internal Comments and Linked Orders Nov 1, 2026
@ahegyes
ahegyes merged commit 8e2db8e into trunk Nov 1, 2026
52 checks passed
@ahegyes
ahegyes deleted the fix/underscore-include-rows branch November 1, 2026 10:48
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.

1 participant