Skip to content
Snippets Groups Projects
Commit 02856fcd authored by Anja Leichsenring's avatar Anja Leichsenring Committed by Andreas Fernandez
Browse files

[BUGFIX] Add recipient to FluidEmail Test cases to avoid errors

The to header is mandatory by now, so we need to supply the recipient
in our testcases now.

Resolves: #91346
Releases: master
Change-Id: Ic1a3197a8412b27eb5cebb00a1443f10021b9326
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64438


Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent b7dc8b29
Branches
Tags
No related merge requests found
......@@ -32,7 +32,8 @@ class FluidEmailTest extends FunctionalTestCase
->format(FluidEmail::FORMAT_PLAIN)
->setTemplate('Default')
->from('benniYYYY@typo3.org')
->assign('content', 'Plain content from Functional test');
->assign('content', 'Plain content from Functional test')
->to('some-recipient@example.com');
$result = $subject->getBody();
self::assertEquals('plain', $result->getMediaSubtype());
self::assertStringContainsString('Plain content from Functional test', $result->bodyToString());
......@@ -50,7 +51,8 @@ class FluidEmailTest extends FunctionalTestCase
->format(FluidEmail::FORMAT_HTML)
->setTemplate('Default')
->from('benniYYYY@typo3.org')
->assign('content', 'HTML content <strong>from</strong> Functional test');
->assign('content', 'HTML content <strong>from</strong> Functional test')
->to('some-recipient@example.com');
$result = $subject->getBody();
self::assertEquals('html', $result->getMediaSubtype());
self::assertStringContainsString('&lt;strong&gt;from&lt;/strong&gt;', $result->bodyToString());
......@@ -68,7 +70,8 @@ class FluidEmailTest extends FunctionalTestCase
->format(FluidEmail::FORMAT_BOTH)
->setTemplate('Default')
->from('benniYYYY@typo3.org')
->assign('content', 'Plain content <strong>from</strong> Functional test');
->assign('content', 'Plain content <strong>from</strong> Functional test')
->to('some-recipient@example.com');
$result = $subject->getBody();
self::assertEquals('alternative', $result->getMediaSubtype());
self::assertStringContainsString('&lt;strong&gt;from&lt;/strong&gt;', $result->bodyToString());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment