diff --git a/src/Illuminate/Support/Testing/Fakes/NotificationFake.php b/src/Illuminate/Support/Testing/Fakes/NotificationFake.php index 214f99b93084..c7b12f42d47c 100644 --- a/src/Illuminate/Support/Testing/Fakes/NotificationFake.php +++ b/src/Illuminate/Support/Testing/Fakes/NotificationFake.php @@ -161,11 +161,11 @@ public function assertNothingSent() /** * Assert the total amount of times a notification was sent. * - * @param int $expectedCount * @param string $notification + * @param int $expectedCount * @return void */ - public function assertTimesSent($expectedCount, $notification) + public function assertSentTimes($notification, $expectedCount) { $actualCount = collect($this->notifications) ->flatten(1) @@ -179,6 +179,20 @@ public function assertTimesSent($expectedCount, $notification) ); } + /** + * Assert the total amount of times a notification was sent. + * + * @param int $expectedCount + * @param string $notification + * @return void + * + * @deprecated Use the assertSentTimes method instead + */ + public function assertTimesSent($expectedCount, $notification) + { + $this->assertSentTimes($notification, $expectedCount); + } + /** * Get all of the notifications matching a truth-test callback. *