Skip to content

Commit 28da4f0

Browse files
committed
wip
1 parent f955fee commit 28da4f0

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

src/LaravelScheduleQueueCommandServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function boot(): void
1919
?string $queue = null,
2020
?string $connection = null
2121
) {
22+
/** @var Schedule $this */
2223
return $this->call(function () use ($command, $parameters, $queue, $connection) {
2324
Container::getInstance()
2425
->make(Kernel::class)

tests/TestCase.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,14 @@
33
namespace Fidum\LaravelScheduleQueueCommand\Tests;
44

55
use Fidum\LaravelScheduleQueueCommand\LaravelScheduleQueueCommandServiceProvider;
6-
use Illuminate\Database\Eloquent\Factories\Factory;
76
use Orchestra\Testbench\TestCase as Orchestra;
87

98
class TestCase extends Orchestra
109
{
11-
protected function setUp(): void
12-
{
13-
parent::setUp();
14-
15-
Factory::guessFactoryNamesUsing(
16-
fn (string $modelName) => 'Fidum\\LaravelScheduleQueueCommand\\Database\\Factories\\'.class_basename($modelName).'Factory'
17-
);
18-
}
19-
2010
protected function getPackageProviders($app)
2111
{
2212
return [
2313
LaravelScheduleQueueCommandServiceProvider::class,
2414
];
2515
}
26-
27-
public function getEnvironmentSetUp($app)
28-
{
29-
config()->set('database.default', 'testing');
30-
31-
/*
32-
$migration = include __DIR__.'/../database/migrations/create_laravel-schedule-queue-command_table.php.stub';
33-
$migration->up();
34-
*/
35-
}
3616
}

0 commit comments

Comments
 (0)