Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Unit/Mail/SignupVerificationTest.php
Show All 14 Lines | class SignupVerificationTest extends TestCase | ||||
/** | /** | ||||
* Test email content | * Test email content | ||||
*/ | */ | ||||
public function testBuild(): void | public function testBuild(): void | ||||
{ | { | ||||
$code = new SignupCode([ | $code = new SignupCode([ | ||||
'code' => 'code', | 'code' => 'code', | ||||
'short_code' => 'short-code', | 'short_code' => 'short-code', | ||||
'data' => [ | |||||
'email' => 'test@email', | 'email' => 'test@email', | ||||
'first_name' => 'First', | 'first_name' => 'First', | ||||
'last_name' => 'Last', | 'last_name' => 'Last', | ||||
], | |||||
]); | ]); | ||||
$mail = $this->fakeMail(new SignupVerification($code)); | $mail = $this->fakeMail(new SignupVerification($code)); | ||||
$html = $mail['html']; | $html = $mail['html']; | ||||
$plain = $mail['plain']; | $plain = $mail['plain']; | ||||
$url = Utils::serviceUrl('/signup/' . $code->short_code . '-' . $code->code); | $url = Utils::serviceUrl('/signup/' . $code->short_code . '-' . $code->code); | ||||
Show All 13 Lines |