-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Client ID to change email API call
- Loading branch information
1 parent
a396681
commit 0f3f2f1
Showing
2 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,7 @@ public function testThatFailedApiReturnsFalse() { | |
public function testThatApiCallIsFormedCorrectly() { | ||
$this->startHttpHalting(); | ||
self::$opts->set( 'domain', self::TEST_DOMAIN ); | ||
self::$opts->set( 'client_id', '__test_client_id__' ); | ||
|
||
// Should succeed with a user_id + provider and set_bearer returning true. | ||
$change_email = $this->getStub( true ); | ||
|
@@ -86,7 +87,10 @@ public function testThatApiCallIsFormedCorrectly() { | |
$this->assertEquals( 'PATCH', $decoded_res['method'] ); | ||
$this->assertArrayHasKey( 'email', $decoded_res['body'] ); | ||
$this->assertEquals( '[email protected]', $decoded_res['body']['email'] ); | ||
$this->assertArrayHasKey( 'email_verified', $decoded_res['body'] ); | ||
$this->assertTrue( $decoded_res['body']['email_verified'] ); | ||
$this->assertArrayHasKey( 'client_id', $decoded_res['body'] ); | ||
$this->assertEquals( '__test_client_id__', $decoded_res['body']['client_id'] ); | ||
} | ||
|
||
/** | ||
|