render( $this->emailText(subject: 'Neuer Betreff', body: 'Neuer Text'), ['destination' => 'Skireise'] ); $this->assertSame('Neuer Betreff', $rendered->subject); $this->assertSame('

Neuer Text

', $rendered->bodyHtml); } /** * A fresh database has no rows at all, so the delivered wording has to carry the mails * on its own. */ public function testTheDefaultWordingIsUsedWithoutAStoredRow(): void { $rendered = $this->render(null, ['destination' => 'Skireise']); $this->assertSame('Deine Bewerbung wurde abgelehnt', $rendered->subject); $this->assertStringContainsString('Skireise', $rendered->bodyHtml); } /** * Admins write Markdown, so markup they type is dropped rather than shown back to them * as entities - a mail full of <script> would be nobody's intention either. */ public function testMarkupTypedByAnAdminIsStripped(): void { $rendered = $this->render( $this->emailText(body: 'Hallo '), ['destination' => 'Skireise'] ); $this->assertStringNotContainsString('