-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix some phpunit test warnings #34819
Conversation
@miaulalala Any chance you could have a look at the failing ones in
|
@juliushaertl Not sure if that did the trick. Removed some superfluous text from the VEvent. |
@miaulalala I pushed my attempts to fix but tbh I have no idea what this is testing 🙈 I've added some fixme statements to where I think you might be able to tell with the Imip knowledge. The previous attempt to mock the method calls didn't work so I refactored that a bit so the individual getPlugin methods could be mocked, but the mocking seems quite extensive but I currently don't see a better way. |
I changed some bits, not sure if it did the trick as I keep having issues with running tests locally. Let's see what CI says. |
I managed to make them pass, though I'm not really sure if the adjustments make sense. Maybe you can double check that @miaulalala Besides that after the rebase there are more calendar related warnings (which means the tests don't run):
Running them locally should be just a matter of running this command on an active development instance:
|
No it shouldn't be, as your branch still has the old interface... |
My tests now pass locally. Do yours? |
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
b001804
to
e29720f
Compare
Thanks, yep seems to all pass now :) Thanks for your help |
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.
I would like to see this merged for #32595
Are there known blockers?
apps/dav/lib/CalDAV/InvitationResponse/InvitationResponseServer.php
Outdated
Show resolved
Hide resolved
apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php
Outdated
Show resolved
Hide resolved
I don't have a good idea how to adapt Other than that no blocker from my side |
@juliushaertl I don't remember the details but I do remember struggling with the fact that we use GlobalStoragesService in the test while the app might not be enabled for all tests. I vaguely remember that I might have just enabled the files_external app always in enable.php as a workaround. if that test is the only issue I suggest we handle this separately so we can merge this PR ? |
Signed-off-by: Côme Chilliet <[email protected]>
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.
I applied my suggestions, good to merge for me.
Test\Encryption\UtilTest
will be fixed later in an other PR.
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
|
…plTest.php Signed-off-by: Côme Chilliet <[email protected]>
The NODB tests currently have plenty of warnings that do not fail the tests but are cases that are not running properly:
Once fixed we should probably add the
failOnWarning="true"
option to our phpunit config.