File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Tests ;
4
4
5
- use Illuminate \Console \Application as ConsoleApplication ;
5
+ use Illuminate \Console \Scheduling \ Schedule ;
6
6
use Illuminate \Support \Facades \Event ;
7
7
use PHPUnit \Framework \Attributes \Test ;
8
8
use Stackkit \LaravelGoogleCloudScheduler \OpenIdVerificator ;
@@ -62,9 +62,7 @@ public function it_prevents_overlapping_if_the_command_is_scheduled_without_over
62
62
$ this ->assertLoggedLines (1 );
63
63
$ this ->assertLogged ('TestCommand ' );
64
64
65
- $ expression = '* * * * * ' ;
66
- $ command = ConsoleApplication::formatCommandString ('test:command ' );
67
- $ mutex = 'framework ' .DIRECTORY_SEPARATOR .'schedule- ' .sha1 ($ expression .$ command );
65
+ $ mutex = head (app (Schedule::class)->events ())->mutexName ();
68
66
69
67
cache ()->add ($ mutex , true , 60 );
70
68
You can’t perform that action at this time.
0 commit comments