BusFake

Illuminate\Support\Testing\Fakes\BusFake

class src/Illuminate/Support/Testing/Fakes/BusFake.php

__construct

v11.0.0 以前から

__construct(Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher, $jobsToFake = [], ?Illuminate\Bus\BatchRepository $batchRepository = null)
@param \Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher
@param array|string $jobsToFake
@param \Illuminate\Bus\BatchRepository|null $batchRepository
  1. v11.0.0 追加
    変更後
    __construct(Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher, $jobsToFake = [], Illuminate\Bus\BatchRepository $batchRepository = null) [@param \Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher, @param array|string $jobsToFake, @param \Illuminate\Bus\BatchRepository|null $batchRepository, @return void]
  2. v11.3.0 シグネチャ変更
    変更前
    __construct(Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher, $jobsToFake = [], Illuminate\Bus\BatchRepository $batchRepository = null) [@param \Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher, @param array|string $jobsToFake, @param \Illuminate\Bus\BatchRepository|null $batchRepository, @return void]
    変更後
    __construct(Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher, $jobsToFake = [], ?Illuminate\Bus\BatchRepository $batchRepository = null) [@param \Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher, @param array|string $jobsToFake, @param \Illuminate\Bus\BatchRepository|null $batchRepository, @return void]
  3. v12.4.0 シグネチャ変更
    変更前
    __construct(Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher, $jobsToFake = [], ?Illuminate\Bus\BatchRepository $batchRepository = null) [@param \Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher, @param array|string $jobsToFake, @param \Illuminate\Bus\BatchRepository|null $batchRepository, @return void]
    変更後
    __construct(Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher, $jobsToFake = [], ?Illuminate\Bus\BatchRepository $batchRepository = null) [@param \Illuminate\Contracts\Bus\QueueingDispatcher $dispatcher, @param array|string $jobsToFake, @param \Illuminate\Bus\BatchRepository|null $batchRepository]

assertBatchCount

v11.0.0 以前から

assertBatchCount($count)
@param int $count
@return void
  1. v11.0.0 追加
    変更後
    assertBatchCount($count) [@param int $count, @return void]

assertBatched

v11.0.0 以前から

assertBatched(callable|array $callback)
@param array|callable(\Illuminate\Bus\PendingBatch): bool $callback
@return void
  1. v11.0.0 追加
    変更後
    assertBatched(callable $callback) [@param callable $callback, @return void]
  2. v12.43.0 シグネチャ変更
    変更前
    assertBatched(callable $callback) [@param callable $callback, @return void]
    変更後
    assertBatched(callable $callback) [@param callable(\Illuminate\Bus\PendingBatch): bool $callback, @return void]
  3. v12.51.0 シグネチャ変更
    変更前
    assertBatched(callable $callback) [@param callable(\Illuminate\Bus\PendingBatch): bool $callback, @return void]
    変更後
    assertBatched(callable|array $callback) [@param array|callable(\Illuminate\Bus\PendingBatch): bool $callback, @return void]

assertChained

v11.0.0 以前から

assertChained(array $expectedChain)
@param array $expectedChain
@return void
  1. v11.0.0 追加
    変更後
    assertChained(array $expectedChain) [@param array $expectedChain, @return void]

assertDispatched

v11.0.0 以前から

assertDispatched($command, $callback = null)
@param string|\Closure $command
@param callable|array<string, mixed>|int|null $callback
@return void
  1. v11.0.0 追加
    変更後
    assertDispatched($command, $callback = null) [@param string|\Closure $command, @param callable|int|null $callback, @return void]
  2. v13.35.0 シグネチャ変更
    変更前
    assertDispatched($command, $callback = null) [@param string|\Closure $command, @param callable|int|null $callback, @return void]
    変更後
    assertDispatched($command, $callback = null) [@param string|\Closure $command, @param callable|array<string, mixed>|int|null $callback, @return void]

assertDispatchedAfterResponse

v11.0.0 以前から

assertDispatchedAfterResponse($command, $callback = null)
@param string|\Closure $command
@param callable|int|null $callback
@return void
  1. v11.0.0 追加
    変更後
    assertDispatchedAfterResponse($command, $callback = null) [@param string|\Closure $command, @param callable|int|null $callback, @return void]

assertDispatchedAfterResponseTimes

v11.0.0 以前から

assertDispatchedAfterResponseTimes($command, $times = 1)
@param string|\Closure $command
@param int $times
@return void
  1. v11.0.0 追加
    変更後
    assertDispatchedAfterResponseTimes($command, $times = 1) [@param string|\Closure $command, @param int $times, @return void]

assertDispatchedOnce

v12.22.0 から

assertDispatchedOnce($command)
@param string|\Closure $command
@return void
  1. v12.22.0 追加
    変更後
    assertDispatchedOnce($command) [@param string|\Closure $command, @return void]

assertDispatchedSync

v11.0.0 以前から

assertDispatchedSync($command, $callback = null)
@param string|\Closure $command
@param callable|int|null $callback
@return void
  1. v11.0.0 追加
    変更後
    assertDispatchedSync($command, $callback = null) [@param string|\Closure $command, @param callable|int|null $callback, @return void]

assertDispatchedSyncTimes

v11.0.0 以前から

assertDispatchedSyncTimes($command, $times = 1)
@param string|\Closure $command
@param int $times
@return void
  1. v11.0.0 追加
    変更後
    assertDispatchedSyncTimes($command, $times = 1) [@param string|\Closure $command, @param int $times, @return void]

assertDispatchedTimes

v11.0.0 以前から

assertDispatchedTimes($command, $times = 1)
@param string|\Closure $command
@param int $times
@return void
  1. v11.0.0 追加
    変更後
    assertDispatchedTimes($command, $times = 1) [@param string|\Closure $command, @param int $times, @return void]

assertDispatchedWithoutChain

v11.0.0 以前から

assertDispatchedWithoutChain($command, $callback = null)
@param string|\Closure $command
@param callable|null $callback
@return void
  1. v11.0.0 追加
    変更後
    assertDispatchedWithoutChain($command, $callback = null) [@param string|\Closure $command, @param callable|null $callback, @return void]

assertNotDispatched

v11.0.0 以前から

assertNotDispatched($command, $callback = null)
@param string|\Closure $command
@param callable|array<string, mixed>|null $callback
@return void
  1. v11.0.0 追加
    変更後
    assertNotDispatched($command, $callback = null) [@param string|\Closure $command, @param callable|null $callback, @return void]
  2. v13.35.0 シグネチャ変更
    変更前
    assertNotDispatched($command, $callback = null) [@param string|\Closure $command, @param callable|null $callback, @return void]
    変更後
    assertNotDispatched($command, $callback = null) [@param string|\Closure $command, @param callable|array<string, mixed>|null $callback, @return void]

assertNotDispatchedAfterResponse

v11.0.0 以前から

assertNotDispatchedAfterResponse($command, $callback = null)
@param string|\Closure $command
@param callable|null $callback
@return void
  1. v11.0.0 追加
    変更後
    assertNotDispatchedAfterResponse($command, $callback = null) [@param string|\Closure $command, @param callable|null $callback, @return void]

assertNotDispatchedSync

v11.0.0 以前から

assertNotDispatchedSync($command, $callback = null)
@param string|\Closure $command
@param callable|null $callback
@return void
  1. v11.0.0 追加
    変更後
    assertNotDispatchedSync($command, $callback = null) [@param string|\Closure $command, @param callable|null $callback, @return void]

assertNothingBatched

v11.0.0 以前から

assertNothingBatched()
@return void
  1. v11.0.0 追加
    変更後
    assertNothingBatched() [@return void]

assertNothingChained

v11.34.0 から

assertNothingChained()
@return void
  1. v11.34.0 追加
    変更後
    assertNothingChained() [@return void]

assertNothingDispatched

v11.0.0 以前から

assertNothingDispatched()
@return void
  1. v11.0.0 追加
    変更後
    assertNothingDispatched() [@return void]

assertNothingPlaced

v11.34.0 から

assertNothingPlaced()
@return void
  1. v11.34.0 追加
    変更後
    assertNothingPlaced() [@return void]

batch

v11.0.0 以前から

batch($jobs)
@param \Illuminate\Support\Collection|array $jobs
@return \Illuminate\Bus\PendingBatch
  1. v11.0.0 追加
    変更後
    batch($jobs) [@param \Illuminate\Support\Collection|array $jobs, @return \Illuminate\Bus\PendingBatch]

batched

v11.0.0 以前から

batched(callable $callback)
@param callable(\Illuminate\Bus\PendingBatch): bool $callback
@return \Illuminate\Support\Collection<int, \Illuminate\Bus\PendingBatch>
  1. v11.0.0 追加
    変更後
    batched(callable $callback) [@param callable $callback, @return \Illuminate\Support\Collection]
  2. v12.43.0 シグネチャ変更
    変更前
    batched(callable $callback) [@param callable $callback, @return \Illuminate\Support\Collection]
    変更後
    batched(callable $callback) [@param callable(\Illuminate\Bus\PendingBatch): bool $callback, @return \Illuminate\Support\Collection<int, \Illuminate\Bus\PendingBatch>]

bulk

v13.13.0 から

bulk($jobs)
@param iterable $jobs
@return void
  1. v13.13.0 追加
    変更後
    bulk($jobs) [@param iterable $jobs, @return void]

chain

v11.0.0 以前から

chain($jobs = null)
@param \Illuminate\Support\Collection|array|null $jobs
@return \Illuminate\Foundation\Bus\PendingChain
  1. v11.0.0 追加
    変更後
    chain($jobs) [@param \Illuminate\Support\Collection|array $jobs, @return \Illuminate\Foundation\Bus\PendingChain]
  2. v12.26.0 シグネチャ変更
    変更前
    chain($jobs) [@param \Illuminate\Support\Collection|array $jobs, @return \Illuminate\Foundation\Bus\PendingChain]
    変更後
    chain($jobs = null) [@param \Illuminate\Support\Collection|array|null $jobs, @return \Illuminate\Foundation\Bus\PendingChain]

chainedBatch

v11.0.0 以前から

chainedBatch(Closure $callback)
@param \Closure(\Illuminate\Bus\PendingBatch): bool $callback
@return \Illuminate\Support\Testing\Fakes\ChainedBatchTruthTest
  1. v11.0.0 追加
    変更後
    chainedBatch(Closure $callback) [@param \Closure $callback, @return \Illuminate\Support\Testing\Fakes\ChainedBatchTruthTest]
  2. v12.43.0 シグネチャ変更
    変更前
    chainedBatch(Closure $callback) [@param \Closure $callback, @return \Illuminate\Support\Testing\Fakes\ChainedBatchTruthTest]
    変更後
    chainedBatch(Closure $callback) [@param \Closure(\Illuminate\Bus\PendingBatch): bool $callback, @return \Illuminate\Support\Testing\Fakes\ChainedBatchTruthTest]

dispatch

v11.0.0 以前から

dispatch($command)
@param mixed $command
@return mixed
  1. v11.0.0 追加
    変更後
    dispatch($command) [@param mixed $command, @return mixed]

dispatchAfterResponse

v11.0.0 以前から

dispatchAfterResponse($command, $handler = null)
@param mixed $command
@param mixed $handler
@return void
  1. v11.0.0 追加
    変更後
    dispatchAfterResponse($command) [@param mixed $command, @return mixed]
  2. v13.0.0 シグネチャ変更
    変更前
    dispatchAfterResponse($command) [@param mixed $command, @return mixed]
    変更後
    dispatchAfterResponse($command, $handler = null) [@param mixed $command, @param mixed $handler, @return void]

dispatched

v11.0.0 以前から

dispatched($command, $callback = null)
@param string $command
@param callable|array<string, mixed>|null $callback
@return \Illuminate\Support\Collection
  1. v11.0.0 追加
    変更後
    dispatched($command, $callback = null) [@param string $command, @param callable|null $callback, @return \Illuminate\Support\Collection]
  2. v13.35.0 シグネチャ変更
    変更前
    dispatched($command, $callback = null) [@param string $command, @param callable|null $callback, @return \Illuminate\Support\Collection]
    変更後
    dispatched($command, $callback = null) [@param string $command, @param callable|array<string, mixed>|null $callback, @return \Illuminate\Support\Collection]

dispatchedAfterResponse

v11.0.0 以前から

dispatchedAfterResponse(string $command, $callback = null)
@param string $command
@param callable|array<string, mixed>|null $callback
@return \Illuminate\Support\Collection
  1. v11.0.0 追加
    変更後
    dispatchedAfterResponse(string $command, $callback = null) [@param string $command, @param callable|null $callback, @return \Illuminate\Support\Collection]
  2. v13.35.0 シグネチャ変更
    変更前
    dispatchedAfterResponse(string $command, $callback = null) [@param string $command, @param callable|null $callback, @return \Illuminate\Support\Collection]
    変更後
    dispatchedAfterResponse(string $command, $callback = null) [@param string $command, @param callable|array<string, mixed>|null $callback, @return \Illuminate\Support\Collection]

dispatchedBatches

v11.18.0 から

dispatchedBatches()
@return array
  1. v11.18.0 追加
    変更後
    dispatchedBatches() [@return array]

dispatchedSync

v11.0.0 以前から

dispatchedSync(string $command, $callback = null)
@param string $command
@param callable|array<string, mixed>|null $callback
@return \Illuminate\Support\Collection
  1. v11.0.0 追加
    変更後
    dispatchedSync(string $command, $callback = null) [@param string $command, @param callable|null $callback, @return \Illuminate\Support\Collection]
  2. v13.35.0 シグネチャ変更
    変更前
    dispatchedSync(string $command, $callback = null) [@param string $command, @param callable|null $callback, @return \Illuminate\Support\Collection]
    変更後
    dispatchedSync(string $command, $callback = null) [@param string $command, @param callable|array<string, mixed>|null $callback, @return \Illuminate\Support\Collection]

dispatchFakeBatch

v11.0.0 以前から

dispatchFakeBatch($name = '')
@param string $name
@return \Illuminate\Bus\Batch
  1. v11.0.0 追加
    変更後
    dispatchFakeBatch($name = '') [@param string $name, @return \Illuminate\Bus\Batch]

dispatchNow

v11.0.0 以前から

dispatchNow($command, $handler = null)
@param mixed $command
@param mixed $handler
@return mixed
  1. v11.0.0 追加
    変更後
    dispatchNow($command, $handler = null) [@param mixed $command, @param mixed $handler, @return mixed]

dispatchSync

v11.0.0 以前から

dispatchSync($command, $handler = null)
@param mixed $command
@param mixed $handler
@return mixed
  1. v11.0.0 追加
    変更後
    dispatchSync($command, $handler = null) [@param mixed $command, @param mixed $handler, @return mixed]

dispatchToQueue

v11.0.0 以前から

dispatchToQueue($command)
@param mixed $command
@return mixed
  1. v11.0.0 追加
    変更後
    dispatchToQueue($command) [@param mixed $command, @return mixed]

except

v11.0.0 以前から

except($jobsToDispatch)
@param array|string $jobsToDispatch
@return $this
  1. v11.0.0 追加
    変更後
    except($jobsToDispatch) [@param array|string $jobsToDispatch, @return $this]

findBatch

v11.0.0 以前から

findBatch(string $batchId)
@param string $batchId
@return \Illuminate\Bus\Batch|null
  1. v11.0.0 追加
    変更後
    findBatch(string $batchId) [@param string $batchId, @return \Illuminate\Bus\Batch|null]

getCommandHandler

v11.0.0 以前から

getCommandHandler($command)
@param mixed $command
@return mixed
  1. v11.0.0 追加
    変更後
    getCommandHandler($command) [@param mixed $command, @return mixed]

hasCommandHandler

v11.0.0 以前から

hasCommandHandler($command)
@param mixed $command
@return bool
  1. v11.0.0 追加
    変更後
    hasCommandHandler($command) [@param mixed $command, @return bool]

hasDispatched

v11.0.0 以前から

hasDispatched($command)
@param string $command
@return bool
  1. v11.0.0 追加
    変更後
    hasDispatched($command) [@param string $command, @return bool]

hasDispatchedAfterResponse

v11.0.0 以前から

hasDispatchedAfterResponse($command)
@param string $command
@return bool
  1. v11.0.0 追加
    変更後
    hasDispatchedAfterResponse($command) [@param string $command, @return bool]

hasDispatchedSync

v11.0.0 以前から

hasDispatchedSync($command)
@param string $command
@return bool
  1. v11.0.0 追加
    変更後
    hasDispatchedSync($command) [@param string $command, @return bool]

map

v11.0.0 以前から

map(array $map)
@param array $map
@return $this
  1. v11.0.0 追加
    変更後
    map(array $map) [@param array $map, @return $this]

pipeThrough

v11.0.0 以前から

pipeThrough(array $pipes)
@param array $pipes
@return $this
  1. v11.0.0 追加
    変更後
    pipeThrough(array $pipes) [@param array $pipes, @return $this]

recordPendingBatch

v11.0.0 以前から

recordPendingBatch(Illuminate\Bus\PendingBatch $pendingBatch)
@param \Illuminate\Bus\PendingBatch $pendingBatch
@return \Illuminate\Bus\Batch
  1. v11.0.0 追加
    変更後
    recordPendingBatch(Illuminate\Bus\PendingBatch $pendingBatch) [@param \Illuminate\Bus\PendingBatch $pendingBatch, @return \Illuminate\Bus\Batch]

serializeAndRestore

v11.0.0 以前から

serializeAndRestore(bool $serializeAndRestore = true)
@param bool $serializeAndRestore
@return $this
  1. v11.0.0 追加
    変更後
    serializeAndRestore(bool $serializeAndRestore = true) [@param bool $serializeAndRestore, @return $this]