Skip to content

Commit b10f618

Browse files
committed
remove the test preventing disabled schedule to be manually executed
1 parent f7f972b commit b10f618

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

tests/Integration/Api/Client/Server/Schedule/ExecuteScheduleTest.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,6 @@ public function testScheduleIsExecutedRightAway(array $permissions)
5151
});
5252
}
5353

54-
/**
55-
* Test that the schedule is not executed if it is not currently active.
56-
*/
57-
public function testScheduleIsNotExecutedIfNotActive()
58-
{
59-
[$user, $server] = $this->generateTestAccount();
60-
61-
/** @var \Pterodactyl\Models\Schedule $schedule */
62-
$schedule = Schedule::factory()->create([
63-
'server_id' => $server->id,
64-
'is_active' => false,
65-
]);
66-
67-
$response = $this->actingAs($user)->postJson($this->link($schedule, '/execute'));
68-
69-
$response->assertStatus(Response::HTTP_BAD_REQUEST);
70-
$response->assertJsonPath('errors.0.code', 'BadRequestHttpException');
71-
$response->assertJsonPath('errors.0.detail', 'Cannot trigger schedule exection for a schedule that is not currently active.');
72-
}
73-
7454
/**
7555
* Test that a user without the schedule update permission cannot execute it.
7656
*/

0 commit comments

Comments
 (0)