class Illuminate / Support / Testing / Fakes / PendingBatchFake
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

PendingBatchFake

Extends

Properties

protected

$bus BusFake

The fake bus instance.

Default: null

Methods

public

__construct ( BusFake $bus , Illuminate\...\Collection $jobs ) : void

Create a new pending batch instance.

Parameters

  • $bus BusFake
  • $jobs Illuminate\...\Collection
public

dispatch ( ) : Batch

Dispatch the batch.

public

dispatchAfterResponse ( ) : Batch

Dispatch the batch after the response is sent to the browser.