mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 13:34:04 +00:00
Update MaintenanceModeTest.php
This commit is contained in:
parent
b97f409ee3
commit
53d355388c
1 changed files with 2 additions and 4 deletions
|
|
@ -27,8 +27,7 @@ test('tenant can be in maintenance mode', function () {
|
||||||
|
|
||||||
$tenant->putDownForMaintenance();
|
$tenant->putDownForMaintenance();
|
||||||
|
|
||||||
pest()->expectException(HttpException::class);
|
pest()->get('http://acme.localhost/foo')->assertStatus(503);
|
||||||
pest()->get('http://acme.localhost/foo');
|
|
||||||
|
|
||||||
tenancy()->end();
|
tenancy()->end();
|
||||||
|
|
||||||
|
|
@ -58,8 +57,7 @@ test('tenant can be in maintenance mode from command', function() {
|
||||||
|
|
||||||
Artisan::call('tenancy:down');
|
Artisan::call('tenancy:down');
|
||||||
|
|
||||||
pest()->expectException(HttpException::class);
|
pest()->get('http://acme.localhost/foo')->assertStatus(503);
|
||||||
pest()->get('http://acme.localhost/foo');
|
|
||||||
|
|
||||||
tenancy()->end();
|
tenancy()->end();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue