-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(taggedMemebers) - Fix issue when
email
param is array.
This fixes the issue when the $email param is an array. This use case was not supported even tho the signature of the function allowed it.
- Loading branch information
1 parent
d74d74d
commit fa01676
Showing
2 changed files
with
26 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -26,6 +26,20 @@ public function test_tag_member_ok(): void | |
$this->assertSame(true, $response['success']); | ||
} | ||
|
||
public function test_tag_member_array_ok(): void | ||
{ | ||
$circleSo = $this->getSdkWithMockedClient([ | ||
new Response(200, [], json_response('success_true')), | ||
]); | ||
|
||
$response = $circleSo->taggedMembers() | ||
->tagMember(['[email protected]', '[email protected]'], 123456); | ||
|
||
$this->assertArrayHasKey('success', $response); | ||
|
||
$this->assertSame(true, $response['success']); | ||
} | ||
|
||
public function test_untag_member_ok(): void | ||
{ | ||
$circleSo = $this->getSdkWithMockedClient([ | ||
|