Skip to content

Commit

Permalink
Add some options to notification resolver tests
Browse files Browse the repository at this point in the history
  • Loading branch information
norkunas committed Jan 8, 2019
1 parent 29a0f2d commit c173677
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/OneSignal/Tests/Resolver/NotificationResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public function testResolveWithValidValues()
'chrome_web_image' => 'value',
'firefox_icon' => 'value',
'url' => 'http://url.com',
'web_url' => 'http://url.com',
'send_after' => new \DateTime(),
'delayed_option' => 'timezone',
'delivery_time_of_day' => new \DateTime(),
Expand All @@ -110,6 +111,7 @@ public function testResolveWithValidValues()
'email_from_name' => 'value',
'email_from_address' => 'value',
'external_id' => 'value',
'web_push_topic' => 'value',
];

$expectedData = $inpuData;
Expand Down Expand Up @@ -175,6 +177,7 @@ public function wrongValueTypesProvider()
[['chrome_web_image' => 666]],
[['firefox_icon' => 666]],
[['url' => 666]],
[['web_url' => 666]],
[['send_after' => 666]],
[['delayed_option' => 666]],
[['delivery_time_of_day' => 666]],
Expand All @@ -199,6 +202,7 @@ public function wrongValueTypesProvider()
[['email_from_name' => 666]],
[['email_from_address' => 666]],
[['external_id' => 666]],
[['web_push_topic' => 666]],
];
}

Expand Down

0 comments on commit c173677

Please sign in to comment.