- Issue created by @ankitv18
- Status changed to Postponed: needs info
2 months ago 7:04pm 25 June 2024 - 🇺🇸United States cilefen
Hello.
I ran the jsonapi module's kernel tests with no errors in a Git working copy of branch 10.3.x:
../vendor/bin/phpunit modules/jsonapi/tests/src/Kernel PHPUnit 9.6.19 by Sebastian Bergmann and contributors. Testing /var/www/html/core/modules/jsonapi/tests/src/Kernel ............................................................... 63 / 119 ( 52%) ........................................................ 119 / 119 (100%) Time: 01:11.367, Memory: 6.00 MB
Drupal\file\Upload\FileUploadHandler
exists in Drupal and it is a service. This but report needs more detailed steps to reproduce. - Status changed to Needs work
2 months ago 3:04am 26 June 2024 - Status changed to Postponed: needs info
2 months ago 10:57am 26 June 2024 - 🇺🇸United States cilefen
Drupal tests itself all the time and 11.x is passing. In what setup on your end is this failing?
- 🇺🇸United States cilefen
I also ran the jsonapi module kernel tests manually, specifically on the 11.x branch, and they pass. I did this in DDEV in a new site install.
- Status changed to Closed: works as designed
2 months ago 5:42am 28 June 2024 - 🇮🇳India ankitv18
Thanks @cilefen for testing proactively.
I debugged within that module and Figured out, actually it happens because this argument $fileUploadHandler is referencing the file module interface and from D11 onwards if jsonapi is included in the protected $modules = ['jsonapi'] then it needs to be updated by $modules = ['file', 'jsonapi']