-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
chore: Remove useless legacy autoloader for tests #52945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d17c564 to
9243305
Compare
nickvergessen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks apps
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 |
skjnldsv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once apps are handled: 👌
|
What about all the community apps? |
communicate as breaking and move on ? |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
d96db5c to
9560e00
Compare
|
@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