Skip to content

Commit 83e8186

Browse files
committed
fix assertSent to AssertNotSent on some test
1 parent cdd4fef commit 83e8186

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/Feature/Checkouts/Api/AccessoryCheckoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function testUserSentNotificationUponCheckout()
159159
'checkout_to_type' => 'user',
160160
]);
161161

162-
Mail::assertSent(CheckoutAccessoryMail::class, function ($mail) use ($accessory, $user) {
162+
Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($accessory, $user) {
163163
return $mail->hasTo($user) && $mail->contains($accessory);
164164
});
165165
}

tests/Feature/Checkouts/Ui/AccessoryCheckoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function testUserSentNotificationUponCheckout()
170170
'checkout_to_type' => 'user',
171171
]);
172172

173-
Mail::assertSent(CheckoutAccessoryMail::class, function ($mail) use ($accessory, $user) {
173+
Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($accessory, $user) {
174174
return $mail->hasTo($user->email) && $mail->accessory->is($accessory);
175175
});
176176
}

tests/Feature/Checkouts/Ui/ConsumableCheckoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function testUserSentNotificationUponCheckout()
6565
'assigned_to' => $user->id,
6666
]);
6767

68-
Mail::assertSent(CheckoutConsumableMail::class, function ($mail) use ($consumable, $user) {
68+
Mail::assertNotSent(CheckoutConsumableMail::class, function ($mail) use ($consumable, $user) {
6969
return $mail->hasTo($user->email) && $mail->consumable->is($consumable);
7070
});
7171
}

0 commit comments

Comments
 (0)