@@ -49,11 +49,9 @@ public function notificationProvider()
49
49
self ::setUpBeforeClass (); // dirty hack of PHPUnit limitation
50
50
return array (
51
51
array (self ::$ endpoints ['standard ' ], null , null , null ),
52
- array (self ::$ endpoints ['standard ' ], '{message: "Plop", tag: "general"} ' , self ::$ keys ['standard ' ], self ::$ tokens ['standard ' ]),
53
- array (self ::$ endpoints ['standard ' ], '{message: "Plop", tag: "general"} ' , self ::$ keys ['standard ' ], null ),
52
+ array (self ::$ endpoints ['standard ' ], '{"message":"Plop","tag":"general"} ' , self ::$ keys ['standard ' ], self ::$ tokens ['standard ' ]),
54
53
array (self ::$ endpoints ['GCM ' ], null , null , null ),
55
- array (self ::$ endpoints ['GCM ' ], '{message: "Plop", tag: "general"} ' , self ::$ keys ['GCM ' ], self ::$ tokens ['GCM ' ]),
56
- array (self ::$ endpoints ['GCM ' ], '{message: "Plop", tag: "general"} ' , self ::$ keys ['GCM ' ], null ),
54
+ array (self ::$ endpoints ['GCM ' ], '{"message":"Plop","tag":"general"} ' , self ::$ keys ['GCM ' ], self ::$ tokens ['GCM ' ]),
57
55
);
58
56
}
59
57
@@ -74,7 +72,7 @@ public function testSendNotification($endpoint, $payload, $userPublicKey, $userA
74
72
75
73
public function testSendNotificationWithOldAPI ()
76
74
{
77
- $ this ->setExpectedException ('ErrorException ' , 'The API has changed: sendNotification now takes the optional user auth token as parameter. ' );
75
+ $ this ->setExpectedException ('ErrorException ' , 'The API has changed: sendNotification now takes the user auth token as parameter. ' );
78
76
$ this ->webPush ->sendNotification (
79
77
self ::$ endpoints ['standard ' ],
80
78
'test ' ,
0 commit comments