1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 05:14:03 +00:00

Add support for arguments and options

This commit is contained in:
Samuel Štancl 2019-08-09 18:36:46 +02:00
parent cfaa6463ee
commit 3306b8e6de
3 changed files with 27 additions and 8 deletions

View file

@ -108,8 +108,9 @@ class CommandsTest extends TestCase
Artisan::call('tenants:migrate', ['--tenants' => $uuid]);
$this->artisan("tenants:run foo --tenants=$uuid a b")
$this->artisan("tenants:run foo --tenants=$uuid --argument='a=foo' --option='b=bar' --option='c=xyz'")
->expectsOutput("User's name is Test command")
->expectsOutput('a;b');
->expectsOutput('foo')
->expectsOutput('xyz');
}
}