Skip to content

Commit

Permalink
[10.x] Update import & typo (#49370)
Browse files Browse the repository at this point in the history
* Update BusFake.php

* Update UniqueJobTest.php
  • Loading branch information
chu121su12 authored Dec 14, 2023
1 parent baf075f commit 2519088
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Illuminate/Support/Testing/Fakes/BusFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Illuminate\Support\Collection;
use Illuminate\Support\Traits\ReflectsClosures;
use PHPUnit\Framework\Assert as PHPUnit;
use RuntimeException;

class BusFake implements Fake, QueueingDispatcher
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Queue/UniqueJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function testLockIsReleasedForFailedJobs()
$this->expectException(Exception::class);

try {
dispatchSync($job = new UniqueTestFailJob);
dispatch_sync($job = new UniqueTestFailJob);
} finally {
$this->assertTrue($job::$handled);
$this->assertTrue($this->app->get(Cache::class)->lock($this->getLockKey($job), 10)->get());
Expand Down

0 comments on commit 2519088

Please sign in to comment.