mirror of
https://github.com/pelican-dev/panel.git
synced 2026-07-16 05:53:54 +03:00
Use Laravel’s same return types
This commit is contained in:
@@ -15,7 +15,7 @@ class GetStartupAndVariablesTest extends ClientApiIntegrationTestCase
|
||||
*
|
||||
* @dataProvider permissionsDataProvider
|
||||
*/
|
||||
public function testStartupVariablesAreReturnedForServer(array $permissions)
|
||||
public function testStartupVariablesAreReturnedForServer(array $permissions): void
|
||||
{
|
||||
/** @var \App\Models\Server $server */
|
||||
[$user, $server] = $this->generateTestAccount($permissions);
|
||||
@@ -49,7 +49,7 @@ class GetStartupAndVariablesTest extends ClientApiIntegrationTestCase
|
||||
* Test that a user without the required permission, or who does not have any permission to
|
||||
* access the server cannot get the startup information for it.
|
||||
*/
|
||||
public function testStartupDataIsNotReturnedWithoutPermission()
|
||||
public function testStartupDataIsNotReturnedWithoutPermission(): void
|
||||
{
|
||||
[$user, $server] = $this->generateTestAccount([Permission::ACTION_WEBSOCKET_CONNECT]);
|
||||
$this->actingAs($user)->getJson($this->link($server) . '/startup')->assertForbidden();
|
||||
|
||||
Reference in New Issue
Block a user