class QueueFake extends QueueManager implements Queue (View source)
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. |
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|int|null $callback = null) Assert if a job was pushed based on a truth-test callback. | |
void | assertPushedTimes(string $job, int $times = 1) Assert if a job was pushed a number of times. | |
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. | |
void | assertNothingPushed() Assert that no jobs were pushed. | |
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|object $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(DateTimeInterface|DateInterval|int $delay, string|object $job, mixed $data = '', string $queue = null) Push a new job onto the queue after a delay. | |
mixed | pushOn(string $queue, string|object $job, mixed $data = '') Push a new job onto the queue. | |
mixed | laterOn(string $queue, DateTimeInterface|DateInterval|int $delay, string|object $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. |
Create a new queue manager instance.
Register an event listener for the before job event.
Register an event listener for the after job event.
Register an event listener for the exception occurred job event.
Register an event listener for the daemon queue loop.
Register an event listener for the failed job event.
Register an event listener for the daemon queue stopping.
Determine if the driver is connected.
Resolve a queue connection instance.
Resolve a queue connection.
Get the connector for a given driver.
Add a queue connection resolver.
Add a queue connection resolver.
Get the queue connection configuration.
Get the name of the default queue connection.
Set the name of the default queue connection.
Get the full name for the given connection.
Determine if the application is in maintenance mode.
Dynamically pass calls to the default connection.
Assert if a job was pushed based on a truth-test callback.
Assert if a job was pushed a number of times.
Assert if a job was pushed based on a truth-test callback.
Determine if a job was pushed based on a truth-test callback.
Assert that no jobs were pushed.
Get all of the jobs matching a truth-test callback.
Determine if there are any stored jobs for a given class.
Get the size of the queue.
Push a new job onto the queue.
Push a raw payload onto the queue.
Push a new job onto the queue after a delay.
Push a new job onto the queue.
Push a new job onto the queue after a delay.
Pop the next job off of the queue.
Push an array of jobs onto the queue.
Get the connection name for the queue.
Set the connection name for the queue.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Support/Testing/Fakes/QueueFake.html