-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit tests fail under Drupal 10.1 #547
Comments
This would/will be fixed with #606 |
Then for
These prophecy mocks need to return a response object to fix
|
Yay! The first 2 failures were indeed fixed with #606. |
@JohnAlbin if you want a hand with those last two, I can help out – like a PR against But the fix should look something like $client->request('GET', 'http://blog.com/api/revalidate?slug=/node/2')
->shouldBeCalled()
->willReturn(new \GuzzleHttp\Psr7\Response()); EDIT: may need to create a method for helping return those mocks, since there are a lot of them |
@mglaman Your suggestion worked perfectly. Thanks for the help! |
Package containing the bug
next (Drupal module)
Describe the bug
When running the
next
module's unit tests with Drupal 10.1, there are 3 failing tests.Expected behavior
Tests should pass under 10.1 (and under 10.0 and 9.5).
Steps to reproduce:
drupal/core-dev
10.1 in ~/drupal./vendor/bin/phpunit -c ./web modules/next
Additional context
Here's the output when running phpunit:
The text was updated successfully, but these errors were encountered: