mirror of
https://github.com/flarum/framework.git
synced 2025-02-08 14:22:01 +08:00
Typehint event in console scheduling test case
This commit is contained in:
parent
2164b82b80
commit
0bd3dcec39
|
@ -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();
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user