Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117877487
D1888.1775338271.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D1888.1775338271.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 9:31 PM (25 m, 57 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ce/e4/69a01add9ace68130050c22b6f5d
Default Alt Text
D1888.1775338271.diff (1 KB)
Attached To
Mode
D1888: Send "Account suspended" notification also to an external email
Attached
Detach File
Event Timeline