We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3e01c6 commit 71f6721Copy full SHA for 71f6721
tests/QueueTest.php
@@ -344,7 +344,8 @@ public function test_backoff_from_job()
344
345
// Act
346
$failingJob = new FailingJob();
347
- $failingJob->backoff = 123;
+ $prop = version_compare(app()->version(), '8.0.0', '<') ? 'delay' : 'backoff';
348
+ $failingJob->$prop = 123;
349
$this->dispatch($failingJob)->run();
350
351
// Assert
@@ -357,6 +358,10 @@ public function test_backoff_from_job()
357
358
/** @test */
359
public function test_exponential_backoff_from_job_method()
360
{
361
+ if (version_compare(app()->version(), '8.0.0', '<')) {
362
+ $this->markTestSkipped('Not supported by Laravel 7.x and below.');
363
+ }
364
+
365
// Arrange
366
Carbon::setTestNow(now()->addDay());
367
CloudTasksApi::fake();
0 commit comments