Skip to content

Commit 333dc91

Browse files
committed
Merge pull request #107 from laitlhadj/master
Add include_external_user_ids notification parameter
1 parent b552b7e commit 333dc91

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Resolver/NotificationResolver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public function resolve(array $data)
6060
->setAllowedTypes('include_ios_tokens', 'array')
6161
->setDefined('include_android_reg_ids')
6262
->setAllowedTypes('include_android_reg_ids', 'array')
63+
->setDefined('include_external_user_ids')
64+
->setAllowedTypes('include_external_user_ids', 'array')
6365
->setDefined('include_wp_uris')
6466
->setAllowedTypes('include_wp_uris', 'array')
6567
->setDefined('include_wp_wns_uris')

tests/OneSignal/Tests/Resolver/NotificationResolverTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function testResolveWithValidValues()
4444
'include_player_ids' => ['value'],
4545
'include_ios_tokens' => ['value'],
4646
'include_android_reg_ids' => ['value'],
47+
'include_external_user_ids' => ['value'],
4748
'include_wp_uris' => ['value'],
4849
'include_wp_wns_uris' => ['value'],
4950
'include_amazon_reg_ids' => ['value'],
@@ -139,6 +140,7 @@ public function wrongValueTypesProvider()
139140
[['include_player_ids' => 'wrongType']],
140141
[['include_ios_tokens' => 'wrongType']],
141142
[['include_android_reg_ids' => 666]],
143+
[['include_external_user_ids' => 666]],
142144
[['include_wp_uris' => 666]],
143145
[['include_wp_wns_uris' => 666]],
144146
[['include_amazon_reg_ids' => 666]],

0 commit comments

Comments
 (0)