Page MenuHomePhorge

D1888.1775240451.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D1888.1775240451.diff

diff --git a/src/app/Jobs/WalletCheck.php b/src/app/Jobs/WalletCheck.php
--- a/src/app/Jobs/WalletCheck.php
+++ b/src/app/Jobs/WalletCheck.php
@@ -175,7 +175,7 @@
$label = "Account suspended";
- $this->sendMail(\App\Mail\NegativeBalanceSuspended::class, false, $label);
+ $this->sendMail(\App\Mail\NegativeBalanceSuspended::class, true, $label);
$now = \Carbon\Carbon::now()->toDateTimeString();
$this->wallet->setSetting('balance_warning_suspended', $now);
diff --git a/src/tests/Feature/Jobs/WalletCheckTest.php b/src/tests/Feature/Jobs/WalletCheckTest.php
--- a/src/tests/Feature/Jobs/WalletCheckTest.php
+++ b/src/tests/Feature/Jobs/WalletCheckTest.php
@@ -225,7 +225,7 @@
// Assert the mail was sent to the user's email, but not to his external email
Mail::assertSent(\App\Mail\NegativeBalanceSuspended::class, 1);
Mail::assertSent(\App\Mail\NegativeBalanceSuspended::class, function ($mail) use ($user) {
- return $mail->hasTo($user->email) && !$mail->hasCc('external@test.com');
+ return $mail->hasTo($user->email) && $mail->hasCc('external@test.com');
});
// Check that it has been suspended

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 3, 6:20 PM (19 h, 31 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ce/e4/69a01add9ace68130050c22b6f5d
Default Alt Text
D1888.1775240451.diff (1 KB)

Event Timeline