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