Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since #2417075: Trusted host verification is incompatible with URIs with the "internal" scheme was committed it is no longer possible to run all the phpunit tests in one go using phpunit. The only reason 8.0.x is green is because simpletest runs each phpunit test in an individual process.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2448223.2.patch | 708 bytes | alexpott |
Comments
Comment #1
mpdonadioI think I know what is going on. Will try some things.
Comment #2
alexpottWe're setting a request factory which is statically persisted on the request which impacts other unit tests.
Comment #3
alexpottThe fix applied is exactly the same as in Symfony\Component\HttpFoundation\Tests\RequestTest::testFactory()
Comment #4
mpdonadioAssuming this comes back green from TestBot, it is RTBC. I was able to reproduce the problem before the patch, and the tests all pass when I run phpunit from the CLI.
Comment #5
tstoecklerSorry about that. Fix seems legit, thanks.
Comment #6
webchickSuppose there's no way to add tests for running tests? :)
Committed and pushed to 8.0.x. Thanks!
Comment #8
neclimdulthere was an issue to use the phpunit test runner on testbot but I haven't seen it pop up in a while.