-
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
Use destruction events at a later runtime #606
Use destruction events at a later runtime #606
Conversation
@mglaman is attempting to deploy a commit to the Chapter Three Team on Vercel. A member of the Team first needs to authorize it. |
Looks blocked on #605 |
Thanks! I'll tidy that up after holiday break |
There's still some phpcs errors.
From #444:
What changes should we make to our tests related to this comment? |
Your tests are explicitly invoking the shutdown function, that's there weren't any errors here before. But for our tests, the shutdown was being invoked after the test had finished and Drupal's container destroyed. Which I also forgot to update the tests, here! |
fixes phpcs and tests for changes
I think phpcs and tests can be fixed. I can rebase this onto one commit with proper commit messaging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good.
There's just one test failure now.
There was 1 failure:
1) Drupal\Tests\next\Kernel\Plugin\PathRevalidatorTest::testRevalidate
Some predictions failed:
Double\ClientInterface\P1:
No calls have been made that match:
Double\ClientInterface\P1->request(exact("GET"), exact("http://blog.com/api/revalidate?slug=/node/2"))
but expected at least one.
No calls have been made that match:
Double\ClientInterface\P1->request(exact("GET"), exact("http://marketing.com/api/revalidate?slug=/node/3&secret=12345"))
but expected at least one.
No calls have been made that match:
Double\ClientInterface\P1->request(exact("GET"), exact("http://blog.com/api/revalidate?slug=/node/3"))
but expected at least one.
No calls have been made that match:
Double\ClientInterface\P1->request(exact("GET"), exact("http://marketing.com/api/revalidate?slug=/&secret=12345"))
but expected at least one.
No calls have been made that match:
Double\ClientInterface\P1->request(exact("GET"), exact("http://marketing.com/api/revalidate?slug=/blog&secret=12345"))
but expected at least one.
No calls have been made that match:
Double\ClientInterface\P1->request(exact("GET"), exact("http://blog.com/api/revalidate?slug=/"))
but expected at least one.
No calls have been made that match:
Double\ClientInterface\P1->request(exact("GET"), exact("http://blog.com/api/revalidate?slug=/blog"))
but expected at least one.
replace calls to drupal shutdown for kernel terminate in tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the tests pass!
This pull request is for: (mark with an "x")
examples/*
modules/next
packages/next-drupal
starters/basic-starter
starters/graphql-starter
GitHub Issue: fixes #444
Code changes need test coverage. If you don't know
how to make tests, check this box to ask for help.
Describe your changes
See issue – converts from inappropriate
drupal_register_shutdown_functioncalls
to destruction service so that the container is available, appropriately.