We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 491ff62 + e0b4305 commit 5e53e2bCopy full SHA for 5e53e2b
tests/TaskHandlerTest.php
@@ -2,7 +2,7 @@
2
3
namespace Tests;
4
5
-use Illuminate\Console\Application as ConsoleApplication;
+use Illuminate\Console\Scheduling\Schedule;
6
use Illuminate\Support\Facades\Event;
7
use PHPUnit\Framework\Attributes\Test;
8
use Stackkit\LaravelGoogleCloudScheduler\OpenIdVerificator;
@@ -62,9 +62,7 @@ public function it_prevents_overlapping_if_the_command_is_scheduled_without_over
62
$this->assertLoggedLines(1);
63
$this->assertLogged('TestCommand');
64
65
- $expression = '* * * * *';
66
- $command = ConsoleApplication::formatCommandString('test:command');
67
- $mutex = 'framework'.DIRECTORY_SEPARATOR.'schedule-'.sha1($expression.$command);
+ $mutex = head(app(Schedule::class)->events())->mutexName();
68
69
cache()->add($mutex, true, 60);
70
0 commit comments