You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2026. It is now read-only.
The Code Quality workflow's PHPUnit matrix jobs (PHPUnit (PHP 8.3, NC stable32) and PHPUnit (PHP 8.4, NC stable32)) fail on PRs with 95 errors caused by test/production drift — unit tests reference production classes and methods that have since been removed or renamed.
Root cause (two distinct drifts)
OCA\OpenRegister\Service\DownloadService does not exist — multiple Unit\Controller\SchemasControllerTest cases (testCreateReturns500OnException, testRelatedReturns500OnGenericException, testExploreReturns500OnException, and others) call createMock(DownloadService::class), but lib/Service/DownloadService.php no longer exists. PHPUnit throws MockObject\Generator\UnknownTypeException.
importObjects method no longer exists — tests configure a mock method importObjects that is no longer defined on its target class. PHPUnit throws MockObject\MethodCannotBeConfiguredException.
Evidence it is pre-existing (not introduced by a recent quality PR)
grep -rn "function importObjects" lib/ → no matches.
Update the affected unit tests to the current production surface: drop the DownloadService mock (and its constructor injection) where the class was removed, and replace/remove the importObjects mock expectation with the method that superseded it. Owned by the test-infrastructure track.
Summary
The
Code Qualityworkflow's PHPUnit matrix jobs (PHPUnit (PHP 8.3, NC stable32)andPHPUnit (PHP 8.4, NC stable32)) fail on PRs with 95 errors caused by test/production drift — unit tests reference production classes and methods that have since been removed or renamed.Root cause (two distinct drifts)
OCA\OpenRegister\Service\DownloadServicedoes not exist — multipleUnit\Controller\SchemasControllerTestcases (testCreateReturns500OnException,testRelatedReturns500OnGenericException,testExploreReturns500OnException, and others) callcreateMock(DownloadService::class), butlib/Service/DownloadService.phpno longer exists. PHPUnit throwsMockObject\Generator\UnknownTypeException.importObjectsmethod no longer exists — tests configure a mock methodimportObjectsthat is no longer defined on its target class. PHPUnit throwsMockObject\MethodCannotBeConfiguredException.Evidence it is pre-existing (not introduced by a recent quality PR)
grep -rn "function importObjects" lib/→ no matches.find lib -name DownloadService.php→ no matches.package.json/package-lock.json,docs/features.json, and phpcbf whitespace/comment fixes inlib/).Suggested fix
Update the affected unit tests to the current production surface: drop the
DownloadServicemock (and its constructor injection) where the class was removed, and replace/remove theimportObjectsmock expectation with the method that superseded it. Owned by the test-infrastructure track.