Add unit tests for RunTaskJob.

This commit is contained in:
Dane Everitt
2017-09-30 12:40:07 -05:00
parent 238ce435d6
commit d5bf8734ef
4 changed files with 219 additions and 99 deletions

View File

@@ -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;