add test batches
This commit is contained in:
@@ -31,8 +31,7 @@ class BroadcastEmailControllerTest extends TestCase
|
||||
{
|
||||
$this->seedParentData();
|
||||
|
||||
$fake = new class extends EmailService
|
||||
{
|
||||
$fake = new class extends EmailService {
|
||||
public array $sent = [];
|
||||
|
||||
public function send(
|
||||
@@ -42,9 +41,9 @@ class BroadcastEmailControllerTest extends TestCase
|
||||
string $fromKey = 'general',
|
||||
array $cc = [],
|
||||
array $bcc = []
|
||||
): bool {
|
||||
): bool
|
||||
{
|
||||
$this->sent[] = compact('to', 'subject', 'html', 'fromKey', 'cc', 'bcc');
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user