-
Notifications
You must be signed in to change notification settings - Fork 17
fix(Profile): Fixed the fetching of a workos profile. #294
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -115,6 +115,27 @@ public function testGetProfileAndTokenReturnsProfileWithExpectedValues() | |
| $this->assertEquals($profileFixture, $profileAndToken->profile->toArray()); | ||
| } | ||
|
|
||
| public function testGetProfileReturnsProfileWithExpectedValues() | ||
| { | ||
| $path = "sso/profile"; | ||
|
|
||
| $result = $this->profileAndTokenResponseFixture(); | ||
|
||
|
|
||
| $this->mockRequest( | ||
| Client::METHOD_GET, | ||
| $path, | ||
| null, | ||
| null, | ||
| true, | ||
| $result | ||
| ); | ||
|
|
||
| $profile = $this->sso->getProfile(); | ||
| $profileFixture = $this->profileFixture(); | ||
|
|
||
| $this->assertEquals($profileFixture, $profile->toArray()); | ||
| } | ||
|
|
||
| public function testGetConnection() | ||
| { | ||
| $connection = "connection_id"; | ||
|
|
||
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.
style: Document why the 'true' parameter is being passed to request()
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.
It's not done in other parts of the codebase, so I don't see why I should do it here. Not sure what the maintainers think?