Skip to content

Commit

Permalink
Merge pull request #107 from laitlhadj/master
Browse files Browse the repository at this point in the history
Add include_external_user_ids notification parameter
  • Loading branch information
norkunas committed Dec 21, 2018
1 parent b552b7e commit 333dc91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Resolver/NotificationResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public function resolve(array $data)
->setAllowedTypes('include_ios_tokens', 'array')
->setDefined('include_android_reg_ids')
->setAllowedTypes('include_android_reg_ids', 'array')
->setDefined('include_external_user_ids')
->setAllowedTypes('include_external_user_ids', 'array')
->setDefined('include_wp_uris')
->setAllowedTypes('include_wp_uris', 'array')
->setDefined('include_wp_wns_uris')
Expand Down
2 changes: 2 additions & 0 deletions tests/OneSignal/Tests/Resolver/NotificationResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function testResolveWithValidValues()
'include_player_ids' => ['value'],
'include_ios_tokens' => ['value'],
'include_android_reg_ids' => ['value'],
'include_external_user_ids' => ['value'],
'include_wp_uris' => ['value'],
'include_wp_wns_uris' => ['value'],
'include_amazon_reg_ids' => ['value'],
Expand Down Expand Up @@ -139,6 +140,7 @@ public function wrongValueTypesProvider()
[['include_player_ids' => 'wrongType']],
[['include_ios_tokens' => 'wrongType']],
[['include_android_reg_ids' => 666]],
[['include_external_user_ids' => 666]],
[['include_wp_uris' => 666]],
[['include_wp_wns_uris' => 666]],
[['include_amazon_reg_ids' => 666]],
Expand Down

0 comments on commit 333dc91

Please sign in to comment.