Replace assertTimesSent with assertSentTimes
-Notification::assertTimesSent(1, SomeNotification::class);
+Notification::assertSentTimes(SomeNotification::class, 1);
Configure your rector.php
:
<?php
use RectorLaravel\Rector\StaticCall\ReplaceAssertTimesSendWithAssertSentTimesRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
ReplaceAssertTimesSendWithAssertSentTimesRector::class,
]);