@@ -9,27 +9,27 @@ class NotificationsTest extends TestCase
99 public function testGetOne ()
1010 {
1111 $ data = [
12- 'id ' => " 481a2734-6b7d-11e4-a6ea-4b53294fa671 " ,
12+ 'id ' => ' 481a2734-6b7d-11e4-a6ea-4b53294fa671 ' ,
1313 'successful ' => 15 ,
1414 'failed ' => 1 ,
1515 'converted ' => 3 ,
1616 'remaining ' => 0 ,
1717 'queued_at ' => 1415914655 ,
1818 'send_after ' => 1415914655 ,
19- 'url ' => " https://yourWebsiteToOpen.com " ,
19+ 'url ' => ' https://yourWebsiteToOpen.com ' ,
2020 'data ' => [
2121 'foo ' => 'bar ' ,
22- 'your ' => 'custom metadata '
22+ 'your ' => 'custom metadata ' ,
2323 ],
2424 'canceled ' => false ,
2525 'headings ' => [
2626 'en ' => 'English and default langauge heading ' ,
27- 'es ' => 'Spanish language heading '
27+ 'es ' => 'Spanish language heading ' ,
2828 ],
2929 'contents ' => [
3030 'en ' => 'English language content ' ,
31- 'es ' => 'Hola '
32- ]
31+ 'es ' => 'Hola ' ,
32+ ],
3333 ];
3434
3535 $ oneSignal = $ this ->getMockedOneSignal ();
@@ -63,12 +63,12 @@ public function testGetAll()
6363 'data ' => null ,
6464 'headings ' => [
6565 'en ' => 'English and default langauge heading ' ,
66- 'es ' => 'Spanish language heading '
66+ 'es ' => 'Spanish language heading ' ,
6767 ],
6868 'contents ' => [
6969 'en ' => 'English and default content ' ,
70- 'es ' => 'Hola '
71- ]
70+ 'es ' => 'Hola ' ,
71+ ],
7272 ],
7373 [
7474 'id ' => 'b6b326a8-40aa-13e5-b91b-bf8bc3fa26f7 ' ,
@@ -82,18 +82,18 @@ public function testGetAll()
8282 'url ' => null ,
8383 'data ' => [
8484 'foo ' => 'bar ' ,
85- 'your ' => 'custom metadata '
85+ 'your ' => 'custom metadata ' ,
8686 ],
8787 'headings ' => [
8888 'en ' => 'English and default langauge heading ' ,
89- 'es ' => 'Spanish language heading '
89+ 'es ' => 'Spanish language heading ' ,
9090 ],
9191 'contents ' => [
9292 'en ' => 'English and default content ' ,
93- 'es ' => 'Hola '
94- ]
95- ]
96- ]
93+ 'es ' => 'Hola ' ,
94+ ],
95+ ],
96+ ],
9797 ];
9898
9999 $ oneSignal = $ this ->getMockedOneSignal ();
@@ -145,7 +145,7 @@ public function testSendToAllSubscribers()
145145 'Authorization ' => 'Basic app_auth ' ,
146146 'Content-Type ' => 'application/json ' ,
147147 ],
148- 'json ' => $ postData
148+ 'json ' => $ postData,
149149 ])
150150 ->willReturn ($ returnData );
151151
@@ -174,7 +174,7 @@ public function testSendBasedOnFilters()
174174 [
175175 'field ' => 'amount_spent ' ,
176176 'relation ' => '> ' ,
177- 'value ' => '0 '
177+ 'value ' => '0 ' ,
178178 ],
179179 ],
180180 ];
@@ -192,7 +192,7 @@ public function testSendBasedOnFilters()
192192 'Authorization ' => 'Basic app_auth ' ,
193193 'Content-Type ' => 'application/json ' ,
194194 ],
195- 'json ' => $ postData
195+ 'json ' => $ postData,
196196 ])
197197 ->willReturn ($ returnData );
198198
@@ -220,7 +220,7 @@ public function testOpen()
220220 'Authorization ' => 'Basic app_auth ' ,
221221 'Content-Type ' => 'application/json ' ,
222222 ],
223- 'json ' => $ postData
223+ 'json ' => $ postData,
224224 ])
225225 ->willReturn ($ returnData );
226226
0 commit comments