Uh oh!
There was an error while loading. Please reload this page.
chore: Remove useless legacy autoloader for tests - #52945
Conversation
d17c564 to
9243305Comparecome-nc
commented
May 19, 2025
I expected apps were using tests/bootstrap.php, but it seems a lot have their own. They should be updated to use: \OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);
\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true);As is done is server bootstrap.php. That is still not that pretty as it depends upon |
nickvergessen
commented
May 22, 2025
What about all the community apps? |
skjnldsv
commented
May 22, 2025
communicate as breaking and move on ? |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
d96db5c to
9560e00Comparecome-nc
commented
May 27, 2025
@nickvergessen Can we merge now? |
Ref nextcloud/server#52945 Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Summary
We do not need the legacy autoloader for the TestCase, because we have PSR-4 loading added in 54250ed
Checklist