server status included into the admin settings

This commit is contained in:
Čarodej
2022-02-15 09:33:53 +01:00
parent da74a38605
commit b897eaf482
14 changed files with 347 additions and 90 deletions

View File

@@ -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")