Skip to content

test: add v5 regression coverage and fix widget access recursion - #176

Merged
coolsam726 merged 4 commits into
5.xfrom
fix/v5-regression-tests
Jun 13, 2026
Merged

test: add v5 regression coverage and fix widget access recursion#176
coolsam726 merged 4 commits into
5.xfrom
fix/v5-regression-tests

Conversation

@coolsam726

@coolsam726 coolsam726 commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add regression tests for the v5 maintenance fixes: nwidart v13 Module facade (no global alias), module path macros, Resource PHP 8.4/Pint compatibility, and CanAccessTrait widget access
  • Fix CanAccessTrait so widget canView() no longer recurses through Coolsam\Modules\ChartWidget and looks up the wrong module name (modules instead of blog)
  • Normalize module path macros and convertPathToNamespace() on Windows so provider namespaces resolve correctly
  • Improve test isolation with a shared CreatesTestModules helper and testbench Modules directory cleanup between runs

Issues

Closes #106
Closes #162

Relates to #170 (nwidart/laravel-modules v13 runtime compatibility on the 5.x line; composer constraints landed in #169 and #174)

Test plan

  • vendor/bin/pest --ci (17 tests)
  • ./vendor/bin/phpstan analyse
  • vendor/bin/pint
  • Windows CI matrix job passes

coolsam726 and others added 4 commits June 13, 2026 17:37
Cover nwidart v13 facade usage, module macros, Resource PHP 8.4 compatibility, and CanAccessTrait behavior, and stop delegating to package parent classes that re-enter the trait with the wrong module name.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…rsion

Normalize mixed directory separators in path macros and convertPathToNamespace so Windows CI and runtime resolve module provider namespaces correctly.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coolsam726
coolsam726 merged commit 9e0ad65 into 5.x Jun 13, 2026
7 checks passed
@coolsam726
coolsam726 deleted the fix/v5-regression-tests branch June 13, 2026 14:46
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.

[Bug]: coolsam/modules ^5.0.9 conflicts with filament/filament ^5.0.0 [Bug]: Provider not found

1 participant