Closed (fixed)
Project:
Subrequests
Version:
3.0.6
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2023 at 14:33 UTC
Updated:
23 May 2023 at 16:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
imot3k commentedComment #4
mandclu commentedI ran into this same error, and this fixed it for me.
Comment #5
mhmhartman commentedWe also ran into this issue; the fix in the MR indeed fixes the issue.
Comment #6
rajeshreeputraThis works like charm, any update on merging and releasing this change.
Comment #7
phenaproximaThis seems like a very innocuous change to me. If it passes tests on Drupal 9 and 10, I'd be comfortable committing it.
Comment #8
phenaproximaFor the record...https://www.drupal.org/pift-ci-job/2642108 confirms that HEAD is currently failing on Drupal 10, due to this problem.
Comment #9
phenaproxima😞 Looks like tests still fail on Drupal 10. Probably just another call to
create()that needs to be adjusted.Comment #12
rajeshreeputraadded patch against MR
Comment #13
phenaproximaOkay, but the tests are still failing against Drupal 10.
Please don't re-request review here unless you have a patch or MR that passes on Drupal 9.5, 10.0.x, and 10.1.x.
Comment #15
vishalkhode commented@phenaproxima The MR !14 is ready for review/merge.
Thanks.
Comment #16
rajeshreeputraReviewed changes and looks good, all tests with 9.5, 10.0 10.1 passing.
Comment #18
phenaproximaComment #19
phenaproximaCommitted and released in Subrequests 3.0.7.
Comment #20
2dareis2do commentedWhen running the tests on 3.0.7 branch I am still getting
lando phpunit --group subrequests
PHPUnit 9.5.26 by Sebastian Bergmann and contributors.
Warning: Your XML configuration validates against a deprecated schema.
Suggestion: Migrate your XML configuration using "--migrate-configuration"!
Testing
..............EE......... 25 / 25 (100%)
Time: 00:00.895, Memory: 341.00 MB
There were 2 errors:
1) Error
The data provider specified for Drupal\Tests\subrequests\Normalizer\MultiresponseJsonNormalizerTest::testSupportsNormalization is invalid.
Error: Call to undefined method Symfony\Component\HttpFoundation\Response::create()
/app/web/modules/contrib/subrequests/tests/src/Unit/Normalizer/MultiresponseJsonNormalizerTest.php:37
/app/web/vendor/phpunit/phpunit/src/Util/Annotation/DocBlock.php:426
/app/web/vendor/phpunit/phpunit/src/Util/Annotation/DocBlock.php:283
/app/web/vendor/phpunit/phpunit/src/Util/Test.php:328
/app/web/vendor/phpunit/phpunit/src/Framework/TestBuilder.php:74
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:879
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:229
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:359
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:500
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:525
/app/web/core/tests/TestSuites/TestSuiteBase.php:63
/app/web/core/tests/TestSuites/UnitTestSuite.php:22
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:474
/app/web/vendor/phpunit/phpunit/src/TextUI/TestSuiteMapper.php:84
/app/web/vendor/phpunit/phpunit/src/TextUI/Command.php:391
/app/web/vendor/phpunit/phpunit/src/TextUI/Command.php:112
/app/web/vendor/phpunit/phpunit/src/TextUI/Command.php:97
/app/web/vendor/phpunit/phpunit/src/Framework/ErrorTestCase.php:64
/app/web/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:673
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:673
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:673
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:673
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:673
/app/web/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:661
/app/web/vendor/phpunit/phpunit/src/TextUI/Command.php:144
/app/web/vendor/phpunit/phpunit/src/TextUI/Command.php:97
2) Drupal\Tests\subrequests\Normalizer\MultiresponseJsonNormalizerTest::testNormalize
Error: Call to undefined method Symfony\Component\HttpFoundation\Response::create()
/app/web/modules/contrib/subrequests/tests/src/Unit/Normalizer/MultiresponseJsonNormalizerTest.php:51
/app/web/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:673
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:673
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:673
/app/web/vendor/phpunit/phpunit/src/Framework/TestSuite.php:673
/app/web/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:661
/app/web/vendor/phpunit/phpunit/src/TextUI/Command.php:144
/app/web/vendor/phpunit/phpunit/src/TextUI/Command.php:97
It looks like Response::create() is still being used is testNormalize and testSupportsNormalization tests?