Skip to content

Commit 4348335

Browse files
committed
ITT: Service provider tests fixed.
1 parent 4875c05 commit 4348335

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
use Illuminate\Console\Command;
4+
5+
class RegisteredCommand extends Command
6+
{
7+
protected $signature = 'registered';
8+
9+
public function handle()
10+
{
11+
$this->info('Done!');
12+
}
13+
}

tests/TestingTools/fixture/app/Providers/FixtureServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ private function registerAliases()
2525

2626
private function registerCommands()
2727
{
28-
$this->app->singleton('command.fixture.generic', GenericCommand::class);
28+
$this->app->singleton('command.fixture.registered', RegisteredCommand::class);
2929

30-
$this->commands(['command.fixture.generic']);
30+
$this->commands(['command.fixture.registered']);
3131
}
3232
}

0 commit comments

Comments
 (0)