File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
tests/Integration/Api/Client/Server/Schedule Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments