-
Notifications
You must be signed in to change notification settings - Fork 54
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
Auto update bunq context bunq/sdk_php#94 #131
Conversation
tests/Context/ApiContextTest.php
Outdated
static::assertTrue($validApiContext->ensureSessionActive()); | ||
static::assertNotEquals($expiredApiContext, $validApiContext); | ||
|
||
BunqContext::updateApiContext(clone $expiredApiContext); |
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.
Why cloning here again @OGKevin ?
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.
@OGKevin removed the asserts intentionally? The one on session state can remain right?
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.
Yes because it is triggered deeper in the code as well. So, if a do the assertion on the ensure update method. It will actually update the context. The purpose of this test is to see if the ApiClient indeed updates the context it self and assigns it to BunqContext. So I basically was updating the context instead of ApiClient doing it 🤦♂️
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.
@sandervdo ☝️
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.
Ack
@sandervdo pushed, please 👀 |
References #94