1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 11:14:04 +00:00

[2.3.1] Fix exit codes in TenantAwareCommand (#336)

* Fix exit codes in TenantAwareCommand

* Cast result to int

* Assert exit code 0
This commit is contained in:
Samuel Štancl 2020-03-30 21:09:58 +02:00 committed by GitHub
parent 4b46c65b2f
commit 5dc80473d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View file

@ -22,7 +22,7 @@ class TenantAwareCommandTest extends TestCase
]);
$this->artisan('user:add')
->assertExitCode(1);
->assertExitCode(0);
tenancy()->initializeTenancy($tenant1);
$this->assertNotEmpty(\DB::table('users')->get());