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:
@@ -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();
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user