Skip to content

Commit 667cca8

Browse files
committed
make method consistent with other fakes
1 parent 0fb01ea commit 667cca8

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

src/Illuminate/Support/Testing/Fakes/NotificationFake.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ public function assertNothingSent()
161161
/**
162162
* Assert the total amount of times a notification was sent.
163163
*
164-
* @param int $expectedCount
165164
* @param string $notification
165+
* @param int $expectedCount
166166
* @return void
167167
*/
168-
public function assertTimesSent($expectedCount, $notification)
168+
public function assertSentTimes($notification, $expectedCount)
169169
{
170170
$actualCount = collect($this->notifications)
171171
->flatten(1)
@@ -179,6 +179,20 @@ public function assertTimesSent($expectedCount, $notification)
179179
);
180180
}
181181

182+
/**
183+
* Assert the total amount of times a notification was sent.
184+
*
185+
* @param int $expectedCount
186+
* @param string $notification
187+
* @return void
188+
*
189+
* @deprecated Use the assertSentTimes method instead
190+
*/
191+
public function assertTimesSent($expectedCount, $notification)
192+
{
193+
$this->assertSentTimes($notification, $expectedCount);
194+
}
195+
182196
/**
183197
* Get all of the notifications matching a truth-test callback.
184198
*

0 commit comments

Comments
 (0)