 QueueFake   class QueueFake extends QueueManager implements Queue (View source)  Properties    protected Application  $app The application instance. from QueueManager    protected array  $connections The array of resolved queue connections. from QueueManager    protected array  $connectors The array of resolved queue connectors. from QueueManager    protected array  $jobs All of the jobs that have been pushed.    Methods    void   __construct(Application $app) Create a new queue manager instance.  from QueueManager    void   before(mixed $callback) Register an event listener for the before job event.  from QueueManager    void   after(mixed $callback) Register an event listener for the after job event.  from QueueManager    void   exceptionOccurred(mixed $callback) Register an event listener for the exception occurred job event.  from QueueManager    void   looping(mixed $callback) Register an event listener for the daemon queue loop.  from QueueManager    void   failing(mixed $callback) Register an event listener for the failed job event.  from QueueManager    void   stopping(mixed $callback) Register an event listener for the daemon queue stopping.  from QueueManager    bool   connected(string $name = null) Determine if the driver is connected.  from QueueManager    Queue   connection(mixed $value = null) Resolve a queue connection instance.      Queue   resolve(string $name) Resolve a queue connection.  from QueueManager    ConnectorInterface   getConnector(string $driver) Get the connector for a given driver.  from QueueManager    void   extend(string $driver, Closure $resolver) Add a queue connection resolver.  from QueueManager    void   addConnector(string $driver, Closure $resolver) Add a queue connection resolver.  from QueueManager    array   getConfig(string $name) Get the queue connection configuration.  from QueueManager    string   getDefaultDriver() Get the name of the default queue connection.  from QueueManager    void   setDefaultDriver(string $name) Set the name of the default queue connection.  from QueueManager    string   getName(string $connection = null) Get the full name for the given connection.  from QueueManager    bool   isDownForMaintenance() Determine if the application is in maintenance mode.  from QueueManager    mixed   __call(string $method, array $parameters) Dynamically pass calls to the default connection.  from QueueManager    void   assertPushed(string $job, callable|null $callback = null) Assert if a job was pushed based on a truth-test callback.      void   assertPushedOn(string $queue, string $job, callable|null $callback = null) Assert if a job was pushed based on a truth-test callback.      void   assertNotPushed(string $job, callable|null $callback = null) Determine if a job was pushed based on a truth-test callback.      Collection   pushed(string $job, callable|null $callback = null) Get all of the jobs matching a truth-test callback.      bool   hasPushed(string $job) Determine if there are any stored jobs for a given class.      int   size(string $queue = null) Get the size of the queue.      mixed   push(string $job, mixed $data = '', string $queue = null) Push a new job onto the queue.      mixed   pushRaw(string $payload, string $queue = null, array $options = []) Push a raw payload onto the queue.      mixed   later(DateTime|int $delay, string $job, mixed $data = '', string $queue = null) Push a new job onto the queue after a delay.      mixed   pushOn(string $queue, string $job, mixed $data = '') Push a new job onto the queue.      mixed   laterOn(string $queue, DateTime|int $delay, string $job, mixed $data = '') Push a new job onto the queue after a delay.      Job|null   pop(string $queue = null) Pop the next job off of the queue.      mixed   bulk(array $jobs, mixed $data = '', string $queue = null) Push an array of jobs onto the queue.      string   getConnectionName() Get the connection name for the queue.      $this   setConnectionName(string $name) Set the connection name for the queue.     Details                        void
    __construct(Application $app)
            Create a new queue manager instance.   Parameters   Application $app    Return Value   void                              void
    before(mixed $callback)
            Register an event listener for the before job event.   Parameters   mixed $callback    Return Value   void                              void
    after(mixed $callback)
            Register an event listener for the after job event.   Parameters   mixed $callback    Return Value   void                              void
    exceptionOccurred(mixed $callback)
            Register an event listener for the exception occurred job event.   Parameters   mixed $callback    Return Value   void                              void
    looping(mixed $callback)
            Register an event listener for the daemon queue loop.   Parameters   mixed $callback    Return Value   void                              void
    failing(mixed $callback)
            Register an event listener for the failed job event.   Parameters   mixed $callback    Return Value   void                              void
    stopping(mixed $callback)
            Register an event listener for the daemon queue stopping.   Parameters   mixed $callback    Return Value   void                              bool
    connected(string $name = null)
            Determine if the driver is connected.   Parameters   string $name    Return Value   bool         Queue
    connection(mixed $value = null)
            Resolve a queue connection instance.   Parameters   mixed $value    Return Value   Queue                      protected        Queue
    resolve(string $name)
            Resolve a queue connection.   Parameters   string $name    Return Value   Queue                      protected        ConnectorInterface
    getConnector(string $driver)
            Get the connector for a given driver.   Parameters   string $driver    Return Value   ConnectorInterface    Exceptions   InvalidArgumentException                              void
    extend(string $driver, Closure $resolver)
            Add a queue connection resolver.   Parameters   string $driver    Closure $resolver    Return Value   void                              void
    addConnector(string $driver, Closure $resolver)
            Add a queue connection resolver.   Parameters   string $driver    Closure $resolver    Return Value   void                      protected        array
    getConfig(string $name)
            Get the queue connection configuration.   Parameters   string $name    Return Value   array                              string
    getDefaultDriver()
            Get the name of the default queue connection.   Return Value   string                              void
    setDefaultDriver(string $name)
            Set the name of the default queue connection.   Parameters   string $name    Return Value   void                              string
    getName(string $connection = null)
            Get the full name for the given connection.   Parameters   string $connection    Return Value   string                              bool
    isDownForMaintenance()
            Determine if the application is in maintenance mode.   Return Value   bool                              mixed
    __call(string $method, array $parameters)
            Dynamically pass calls to the default connection.   Parameters   string $method    array $parameters    Return Value   mixed                              void
    assertPushed(string $job, callable|null $callback = null)
            Assert if a job was pushed based on a truth-test callback.   Parameters   string $job    callable|null $callback    Return Value   void                              void
    assertPushedOn(string $queue, string $job, callable|null $callback = null)
            Assert if a job was pushed based on a truth-test callback.   Parameters   string $queue    string $job    callable|null $callback    Return Value   void                              void
    assertNotPushed(string $job, callable|null $callback = null)
            Determine if a job was pushed based on a truth-test callback.   Parameters   string $job    callable|null $callback    Return Value   void         Collection
    pushed(string $job, callable|null $callback = null)
            Get all of the jobs matching a truth-test callback.   Parameters   string $job    callable|null $callback    Return Value   Collection                              bool
    hasPushed(string $job)
            Determine if there are any stored jobs for a given class.   Parameters   string $job    Return Value   bool                              int
    size(string $queue = null)
            Get the size of the queue.   Parameters   string $queue    Return Value   int                              mixed
    push(string $job, mixed $data = '', string $queue = null)
            Push a new job onto the queue.   Parameters   string $job    mixed $data    string $queue    Return Value   mixed                              mixed
    pushRaw(string $payload, string $queue = null, array $options = [])
            Push a raw payload onto the queue.   Parameters   string $payload    string $queue    array $options    Return Value   mixed                              mixed
    later(DateTime|int $delay, string $job, mixed $data = '', string $queue = null)
            Push a new job onto the queue after a delay.   Parameters   
DateTime|int $delay    string $job    mixed $data    string $queue    Return Value   mixed                              mixed
    pushOn(string $queue, string $job, mixed $data = '')
            Push a new job onto the queue.   Parameters   string $queue    string $job    mixed $data    Return Value   mixed                              mixed
    laterOn(string $queue, DateTime|int $delay, string $job, mixed $data = '')
            Push a new job onto the queue after a delay.   Parameters   string $queue    
DateTime|int $delay    string $job    mixed $data    Return Value   mixed         Job|null
    pop(string $queue = null)
            Pop the next job off of the queue.   Parameters   string $queue    Return Value   
Job|null                              mixed
    bulk(array $jobs, mixed $data = '', string $queue = null)
            Push an array of jobs onto the queue.   Parameters   array $jobs    mixed $data    string $queue    Return Value   mixed                              string
    getConnectionName()
            Get the connection name for the queue.   Return Value   string                              $this
    setConnectionName(string $name)
            Set the connection name for the queue.   Parameters   string $name    Return Value   $this      

    
{'path': 'public/docs/laravel~5.4/api/5.4/illuminate/support/testing/fakes/queuefake.html', 'source': 'DevDocs.IO'}