src/Concerns/MocksApplicationServices.php
protected function doesntExpectJobs($jobs)
    {
        $jobs = is_array($jobs) ? $jobs : func_get_args();

        $this->withoutJobs();

        $this->beforeApplicationDestroyed(function () use ($jobs) {
            $this->assertEmpty(
                $dispatched = $this->getDispatchedJobs($jobs),
                'These unexpected jobs were dispatched: ['.implode(', ', $dispatched).']'
            );
        });

        return $this;
    }
protected function doesntExpectJobs($jobs)
    {
        $jobs = is_array($jobs) ? $jobs : func_get_args();

        $this->withoutJobs();

        $this->beforeApplicationDestroyed(function () use ($jobs) {
            $this->assertEmpty(
                $dispatched = $this->getDispatchedJobs($jobs),
                'These unexpected jobs were dispatched: ['.implode(', ', $dispatched).']'
            );
        });

        return $this;
    }
protected function doesntExpectJobs ( $ jobs ) { $ jobs = is_array ( $ jobs ) ? $ jobs : func_get_args ( ) ; $ this -> withoutJobs ( ) ; $ this -> beforeApplicationDestroyed ( function ( ) use ( $ jobs ) { $ this -> assertEmpty ( $ dispatched = $ this -> getDispatchedJobs ( $ jobs ) , 'These unexpected jobs were dispatched: [' . implode ( ', ' , $ dispatched ) . ']' ) ; } ) ; return $ this ; }
Specify a list of jobs that should not be dispatched for the given operation.

These jobs will be mocked, so that handlers will not actually be executed.

@param  array|string  $jobs
@return $this
Specify a list of jobs that should not be dispatched for the given operation .