mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
dashboard alert box for new system upgrade
This commit is contained in:
@@ -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',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user