dashboard alert box for new system upgrade

This commit is contained in:
Čarodej
2022-03-30 18:12:41 +02:00
parent dff804153e
commit 3f8fc1c9ce
19 changed files with 299 additions and 198 deletions

View File

@@ -59,4 +59,22 @@ class AppUpgradeTest extends TestCase
]);
});
}
/**
* @test
*/
public function it_upgrade_app()
{
$user = User::factory()
->create(['role' => 'admin']);
$this
->actingAs($user)
->get('/upgrade/system')
->assertStatus(201);
$this->assertDatabaseHas('app_updates', [
'version' => '2_0_10',
]);
}
}