Add tests for schedule stuff
This commit is contained in:
parent
a8c4d6afdb
commit
4e5398fb6b
6 changed files with 424 additions and 5 deletions
|
@ -77,7 +77,7 @@ class ScheduleCreationService
|
|||
*/
|
||||
public function handle($server, array $data, array $tasks = [])
|
||||
{
|
||||
Assert::true(($server instanceof Server || is_numeric($server)),
|
||||
Assert::true(($server instanceof Server || is_digit($server)),
|
||||
'First argument passed to handle must be numeric or instance of \Pterodactyl\Models\Server, received %s.'
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue