File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -239,14 +239,13 @@ public function testGettingPushStatus()
239
239
// verify not pending
240
240
$ this ->assertFalse ($ pushStatus ->isPending ());
241
241
242
- // verify 'running'
242
+ // verify 'running', or 'failed' on later versions of parse-server
243
+ // both are acceptable
243
244
$ this ->assertTrue (
244
- $ pushStatus ->isRunning (),
245
- 'Push did not succeed '
245
+ $ pushStatus ->isRunning () || $ pushStatus -> hasFailed () ,
246
+ 'Push did not succeed/fail, was ' . $ pushStatus -> getPushStatus ()
246
247
);
247
248
248
-
249
-
250
249
// verify # sent & failed
251
250
$ this ->assertEquals (
252
251
0 ,
@@ -264,8 +263,7 @@ public function testGettingPushStatus()
264
263
'Hash not present '
265
264
);
266
265
267
- // verify we have neither failed or succeeded
268
- $ this ->assertFalse ($ pushStatus ->hasFailed ());
266
+ // verify we have not succeeded
269
267
$ this ->assertFalse ($ pushStatus ->hasSucceeded ());
270
268
}
271
269
You can’t perform that action at this time.
0 commit comments