Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Oct 21, 2025

Summary

Apply rector rules for PHPUnit 10, meaning resolving deprecation in v10 so the transit to v11 will be smoother.

Checklist

@susnux susnux added this to the Nextcloud 33 milestone Oct 21, 2025
@susnux susnux added 3. to review Waiting for reviews tests Related to tests ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Oct 21, 2025
@susnux susnux force-pushed the chore/rector-phpunit-11 branch 6 times, most recently from f83d916 to 79f0299 Compare October 22, 2025 15:17
@susnux susnux marked this pull request as ready for review October 22, 2025 15:20
@susnux susnux requested review from ArtificialOwl, CarlSchwan and provokateurin and removed request for a team October 22, 2025 15:20
@susnux susnux force-pushed the chore/rector-phpunit-11 branch from 79f0299 to de9ce75 Compare October 22, 2025 15:45
@susnux susnux requested a review from miaulalala October 22, 2025 17:07
@susnux susnux force-pushed the chore/rector-phpunit-11 branch from ad105b0 to 1ebbe04 Compare October 22, 2025 17:25
@susnux
Copy link
Contributor Author

susnux commented Oct 22, 2025

  1. Test\Preview\PreviewServiceTest::testGetAvailableFileIds

This test was never run before on Oracle due to wrong annotation -> was included in no-db group.
Meaning the CI error is unrelated to this PR but simply did never work on Oracle.

@nickvergessen
Copy link
Member

So either fix or skip if DB is oracle and fix it soon 🙈

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Both are basically special groups, which we do not use.
But they also had a special meaning in the past which now only works
when set on the test class: They set the test timeout.

So for `@small` we just remove them, for `@medium` we remove where not
needed but keep it on the class where the full test class might make use
of the adjusted timeout.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the chore/rector-phpunit-11 branch from 0a20f2e to c99d274 Compare October 27, 2025 20:56
@susnux susnux merged commit 206b61b into master Oct 27, 2025
227 of 237 checks passed
@susnux susnux deleted the chore/rector-phpunit-11 branch October 27, 2025 22:15
@nextcloud-bot nextcloud-bot mentioned this pull request Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) tests Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants