mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 20:54:03 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
cfaa6463ee
commit
1322d02c78
3 changed files with 3 additions and 4 deletions
|
|
@ -38,7 +38,7 @@ class Run extends Command
|
||||||
|
|
||||||
// Run command
|
// Run command
|
||||||
Artisan::call($this->argument('commandname'), [
|
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();
|
tenancy()->end();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -105,9 +105,9 @@ class CommandsTest extends TestCase
|
||||||
public function run_commands_works()
|
public function run_commands_works()
|
||||||
{
|
{
|
||||||
$uuid = tenant()->create('run.localhost')['uuid'];
|
$uuid = tenant()->create('run.localhost')['uuid'];
|
||||||
|
|
||||||
Artisan::call('tenants:migrate', ['--tenants' => $uuid]);
|
Artisan::call('tenants:migrate', ['--tenants' => $uuid]);
|
||||||
|
|
||||||
$this->artisan("tenants:run foo --tenants=$uuid a b")
|
$this->artisan("tenants:run foo --tenants=$uuid a b")
|
||||||
->expectsOutput("User's name is Test command")
|
->expectsOutput("User's name is Test command")
|
||||||
->expectsOutput('a;b');
|
->expectsOutput('a;b');
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
namespace Stancl\Tenancy\Tests\Etc;
|
namespace Stancl\Tenancy\Tests\Etc;
|
||||||
|
|
||||||
use Stancl\Tenancy\Tests\Etc\ExampleCommand;
|
|
||||||
use Orchestra\Testbench\Console\Kernel;
|
use Orchestra\Testbench\Console\Kernel;
|
||||||
|
|
||||||
class ConsoleKernel extends Kernel
|
class ConsoleKernel extends Kernel
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue