getBody();
- $this->assertInstanceOf(MixedPart::class, $body);
- $this->assertEquals('Text', $body->getParts()[0]->bodyToString());
- $this->assertEquals('Some text document...', base64_decode($body->getParts()[1]->bodyToString()));
- }
-
- private function prepareEmail(?string $full, ?string $text, ?string $html): TemplatedEmail
+ private function prepareEmail(?string $text, ?string $html): TemplatedEmail
{
$twig = new Environment(new ArrayLoader([
- 'full' => $full,
'text' => $text,
'html' => $html,
'document.txt' => 'Some text document...',
@@ -159,9 +64,6 @@ private function prepareEmail(?string $full, ?string $text, ?string $html): Temp
]));
$renderer = new BodyRenderer($twig);
$email = (new TemplatedEmail())->to('fabien@symfony.com')->from('helene@symfony.com');
- if (null !== $full) {
- $email->template('full');
- }
if (null !== $text) {
$email->textTemplate('text');
}
diff --git a/src/Symfony/Bridge/Twig/Tests/Mime/TemplatedEmailTest.php b/src/Symfony/Bridge/Twig/Tests/Mime/TemplatedEmailTest.php
index f5d9235a6d503..999ca4d078d58 100644
--- a/src/Symfony/Bridge/Twig/Tests/Mime/TemplatedEmailTest.php
+++ b/src/Symfony/Bridge/Twig/Tests/Mime/TemplatedEmailTest.php
@@ -13,9 +13,6 @@ public function test()
$email->context($context = ['product' => 'Symfony']);
$this->assertEquals($context, $email->getContext());
- $email->template($template = 'full');
- $this->assertEquals($template, $email->getTemplate());
-
$email->textTemplate($template = 'text');
$this->assertEquals($template, $email->getTextTemplate());
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy