mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
server status included into the admin settings
This commit is contained in:
@@ -14,6 +14,21 @@ use App\Users\Notifications\ResetPassword;
|
||||
|
||||
class AdminTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function it_get_server_status()
|
||||
{
|
||||
$admin = User::factory()
|
||||
->hasSettings()
|
||||
->create(['role' => 'admin']);
|
||||
|
||||
$this
|
||||
->actingAs($admin)
|
||||
->getJson("/api/admin/status")
|
||||
->assertOk();
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
@@ -53,7 +68,6 @@ class AdminTest extends TestCase
|
||||
->hasSettings()
|
||||
->create(['role' => 'admin']);
|
||||
|
||||
// TODO: pridat exactjson po refaktorovani userresource
|
||||
$this
|
||||
->actingAs($admin)
|
||||
->getJson("/api/admin/users/$user->id")
|
||||
|
||||
Reference in New Issue
Block a user