diff --git a/src/Commands/Run.php b/src/Commands/Run.php index 68ae8604..21ff3e3f 100644 --- a/src/Commands/Run.php +++ b/src/Commands/Run.php @@ -38,7 +38,7 @@ class Run extends Command // Run command Artisan::call($this->argument('commandname'), [ - 'args' => $this->argument('args') // todo find a better way to pass args + 'args' => $this->argument('args'), // todo find a better way to pass args ]); tenancy()->end(); }); diff --git a/tests/CommandsTest.php b/tests/CommandsTest.php index d63a5247..30267127 100644 --- a/tests/CommandsTest.php +++ b/tests/CommandsTest.php @@ -105,9 +105,9 @@ class CommandsTest extends TestCase public function run_commands_works() { $uuid = tenant()->create('run.localhost')['uuid']; - + Artisan::call('tenants:migrate', ['--tenants' => $uuid]); - + $this->artisan("tenants:run foo --tenants=$uuid a b") ->expectsOutput("User's name is Test command") ->expectsOutput('a;b'); diff --git a/tests/Etc/ConsoleKernel.php b/tests/Etc/ConsoleKernel.php index 9376bf26..a0d82a84 100644 --- a/tests/Etc/ConsoleKernel.php +++ b/tests/Etc/ConsoleKernel.php @@ -2,7 +2,6 @@ namespace Stancl\Tenancy\Tests\Etc; -use Stancl\Tenancy\Tests\Etc\ExampleCommand; use Orchestra\Testbench\Console\Kernel; class ConsoleKernel extends Kernel