mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 09:34:05 +00:00
Add bring up from maintenance function
This commit is contained in:
parent
20e1fa1959
commit
ec979655d2
2 changed files with 11 additions and 0 deletions
|
|
@ -17,4 +17,9 @@ trait MaintenanceMode
|
|||
'allowed' => $data['allowed'] ?? [],
|
||||
]]);
|
||||
}
|
||||
|
||||
public function bringUpFromMaintenance()
|
||||
{
|
||||
$this->update(['maintenance_mode' => null]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,6 +35,12 @@ class MaintenanceModeTest extends TestCase
|
|||
$this->expectException(MaintenanceModeException::class);
|
||||
$this->withoutExceptionHandling()
|
||||
->get('http://acme.localhost/foo');
|
||||
|
||||
$tenant->bringUpFromMaintenance();
|
||||
|
||||
$this->withoutExceptionHandling()
|
||||
->get('http://acme.localhost/foo')
|
||||
->assertSeeText('bar');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue