ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector

Replace withoutJobs, withoutEvents and withoutNotifications with Facade fake

-$this->withoutJobs();
-$this->withoutEvents();
-$this->withoutNotifications();
+\Illuminate\Support\Facades\Bus::fake();
+\Illuminate\Support\Facades\Event::fake();
+\Illuminate\Support\Facades\Notification::fake();

Configure your rector.php:

<?php

use RectorLaravel\Rector\MethodCall\ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector::class,
    ]);