remove the test preventing disabled schedule to be manually executed
This commit is contained in:
parent
f7f972b33d
commit
b10f6184e0
1 changed files with 0 additions and 20 deletions
|
@ -51,26 +51,6 @@ class ExecuteScheduleTest extends ClientApiIntegrationTestCase
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that the schedule is not executed if it is not currently active.
|
||||
*/
|
||||
public function testScheduleIsNotExecutedIfNotActive()
|
||||
{
|
||||
[$user, $server] = $this->generateTestAccount();
|
||||
|
||||
/** @var \Pterodactyl\Models\Schedule $schedule */
|
||||
$schedule = Schedule::factory()->create([
|
||||
'server_id' => $server->id,
|
||||
'is_active' => false,
|
||||
]);
|
||||
|
||||
$response = $this->actingAs($user)->postJson($this->link($schedule, '/execute'));
|
||||
|
||||
$response->assertStatus(Response::HTTP_BAD_REQUEST);
|
||||
$response->assertJsonPath('errors.0.code', 'BadRequestHttpException');
|
||||
$response->assertJsonPath('errors.0.detail', 'Cannot trigger schedule exection for a schedule that is not currently active.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that a user without the schedule update permission cannot execute it.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue