src/package/Data/Repositories/Support/Queue.php
public function isEnqueued($test)
    {
        return
            $test->state == Constants::STATE_QUEUED
            &&
            QueueModel::where('test_id', $test->id)->first();
    }
public function isEnqueued($test)
    {
        return
            $test->state == Constants::STATE_QUEUED
            &&
            QueueModel::where('test_id', $test->id)->first();
    }
public function isEnqueued ( $ test ) { return $ test -> state == Constants :: STATE_QUEUED && QueueModel :: where ( 'test_id' , $ test -> id ) -> first ( ) ; }
Is the test in the queue?

@param $test

@return bool
Is the test in the queue?