Skip to content

Fix autoloading issue in core moodle tests#959

Open
kristian-94 wants to merge 1 commit into
catalyst:MOODLE_405_STABLEfrom
kristian-94:bugfix/core-autoloading-tests
Open

Fix autoloading issue in core moodle tests#959
kristian-94 wants to merge 1 commit into
catalyst:MOODLE_405_STABLEfrom
kristian-94:bugfix/core-autoloading-tests

Conversation

@kristian-94

@kristian-94 kristian-94 commented May 8, 2026

Copy link
Copy Markdown
Contributor

Fixes issue #958

This is one way to fix it unless the core moodle test was going to change, which I think makes more sense than this change..

@kristian-94 kristian-94 force-pushed the bugfix/core-autoloading-tests branch 2 times, most recently from 257b9d1 to 7a70832 Compare May 9, 2026 23:08
SimpleSAML 2.4 bundles Nyholm/psr7; once loaded, Slim's PSR-17 discovery
picks it over Guzzle and breaks core router tests in the same process.
Pin the factory list to Guzzle in setuplib.php and from every test file
via a shared tests/psr17_factory_pin.php include.
@kristian-94 kristian-94 force-pushed the bugfix/core-autoloading-tests branch from 7a70832 to 69b3ac3 Compare May 11, 2026 06:25
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