Skip to content

Commit

Permalink
Fix 8.3 error
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Mar 1, 2024
1 parent 05f5439 commit a4a5d66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Queue/providers/WordPressCronQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public function test_job_dispatch_now() {
}

public function test_job_failure() {
$_SERVER['__failed_run'] = false;
$_SERVER['__failed_run'] = 0;

$this->app['events']->listen( Job_Failed::class, fn () => $_SERVER['__failed_run'] = true );
$this->app['events']->listen( Job_Failed::class, fn () => $_SERVER['__failed_run']++ );

$this->assertNotInCronQueue( Job_To_Fail::class );

Expand All @@ -94,7 +94,7 @@ public function test_job_failure() {
$this->dispatch_queue();

$this->assertNotInCronQueue( Job_To_Fail::class );
$this->assertTrue( $_SERVER['__failed_run'] );
$this->assertEquals( 2, $_SERVER['__failed_run'] );

// Ensure that the post does not exist.
$this->assertPostExists( [
Expand Down

0 comments on commit a4a5d66

Please sign in to comment.