mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 23:44:03 +00:00
update tests
This commit is contained in:
parent
27eb4f738e
commit
24f04c1328
2 changed files with 17 additions and 6 deletions
|
|
@ -44,12 +44,18 @@ test('tenants can be put into maintenance mode using artisan commands', function
|
|||
|
||||
pest()->get('http://acme.localhost/foo')->assertStatus(200);
|
||||
|
||||
pest()->artisan('tenants:down')
|
||||
->expectsOutputToContain('Tenants are now in maintenance mode.')
|
||||
->assertExitCode(0);
|
||||
|
||||
Artisan::call('tenants:down');
|
||||
|
||||
tenancy()->end(); // End tenancy before making a request
|
||||
pest()->get('http://acme.localhost/foo')->assertStatus(503);
|
||||
|
||||
Artisan::call('tenants:up');
|
||||
pest()->artisan('tenants:up')
|
||||
->expectsOutputToContain('Tenants are now out of maintenance mode.')
|
||||
->assertExitCode(0);
|
||||
|
||||
tenancy()->end(); // End tenancy before making a request
|
||||
pest()->get('http://acme.localhost/foo')->assertStatus(200);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue