Skip to content
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

fix: fix compatibility with phpspec/prophecy v1.10 #2525

Merged
merged 3 commits into from
Dec 18, 2019
Merged

fix: fix compatibility with phpspec/prophecy v1.10 #2525

merged 3 commits into from
Dec 18, 2019

Conversation

jdpedrie
Copy link
Contributor

The latest update to prophecy broke our Spanner tests. Prophecy now evaluates expectations later in execution, and started to notice that Database::__destruct() was calling ConnectionInterface::deleteSession() even though we didn't say it would.

This change adds a utility trait to create connection stubs with the globally-expected method calls already enqueued.

@jdpedrie jdpedrie added the api: spanner Issues related to the Spanner API. label Dec 18, 2019
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 18, 2019
@jdpedrie jdpedrie added the api: firestore Issues related to the Firestore API. label Dec 18, 2019
Copy link
Contributor

@dwsupplee dwsupplee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find, this looks great :).

@dwsupplee dwsupplee changed the title tests: fix compatibility with phpspec/prophecy v1.10 fix: fix compatibility with phpspec/prophecy v1.10 Dec 18, 2019
@jdpedrie jdpedrie merged commit ca739c4 into googleapis:master Dec 18, 2019
@jdpedrie jdpedrie deleted the spanner-fix-prophecy branch December 18, 2019 19:07
This was referenced Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the Firestore API. api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants