1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 13:40:20 +02:00

Typehint event in console scheduling test case

This commit is contained in:
Alexander Skvortsov
2021-05-11 23:55:34 -04:00
parent 92e1d0843c
commit 2075c7319f

View File

@@ -12,6 +12,7 @@ namespace Flarum\Tests\integration\extenders;
use Flarum\Console\AbstractCommand; use Flarum\Console\AbstractCommand;
use Flarum\Extend; use Flarum\Extend;
use Flarum\Testing\integration\ConsoleTestCase; use Flarum\Testing\integration\ConsoleTestCase;
use Illuminate\Console\Scheduling\Event;
class ConsoleTest extends ConsoleTestCase class ConsoleTest extends ConsoleTestCase
{ {
@@ -63,7 +64,7 @@ class ConsoleTest extends ConsoleTestCase
{ {
$this->extend( $this->extend(
(new Extend\Console()) (new Extend\Console())
->schedule('cache:clear', function ($event) { ->schedule('cache:clear', function (Event $event) {
$event->everyMinute(); $event->everyMinute();
}) })
); );