Add unit tests for RunTaskJob.
This commit is contained in:
parent
238ce435d6
commit
d5bf8734ef
4 changed files with 219 additions and 99 deletions
|
@ -61,7 +61,8 @@ class RunTaskJob extends Job implements ShouldQueue
|
|||
*/
|
||||
public function __construct($task, $schedule)
|
||||
{
|
||||
Assert::integerish($task, 'First argument passed to constructor must be numeric, received %s.');
|
||||
Assert::integerish($task, 'First argument passed to constructor must be integer, received %s.');
|
||||
Assert::integerish($schedule, 'Second argument passed to constructor must be integer, received %s.');
|
||||
|
||||
$this->queue = app()->make('config')->get('pterodactyl.queues.standard');
|
||||
$this->task = $task;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue