Skip to content
Snippets Groups Projects
Commit 69f5be01 authored by Markus Klein's avatar Markus Klein Committed by Christian Kuhn
Browse files

[TASK] Avoid sysLog calls in MailUtilityTest

Resolves: #57676
Releases: 6.2
Change-Id: I6f694a2c595756595b09aa4a8a91cb795e8a47b7
Reviewed-on: https://review.typo3.org/29192
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Oliver Klee
Reviewed-by: Pascal Dürsteler
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
parent 761fa18a
Branches
Tags
No related merge requests found
......@@ -83,7 +83,10 @@ class MailUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
$mockMailer = $this->getMock('TYPO3\\CMS\\Core\\Mail\\MailerAdapterInterface', array('mail'));
$mockClassName = get_class($mockMailer);
\TYPO3\CMS\Core\Utility\GeneralUtility::addInstance($mockClassName, $mockMailer);
$mockMailer->expects($this->once())->method('mail')->with($to, $subject, $messageBody, $additionalHeadersExpected, $additionalParameters, $fakeThis);
$mockMailer->expects($this->once())
->method('mail')
->with($to, $subject, $messageBody, $additionalHeadersExpected, $additionalParameters, $fakeThis)
->will($this->returnValue(TRUE));
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/utility/class.t3lib_utility_mail.php']['substituteMailDelivery'] = array($mockClassName);
\TYPO3\CMS\Core\Utility\MailUtility::mail($to, $subject, $messageBody, $additionalHeaders, $additionalParameters);
// Restore configuration
......
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