mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°7920 - laminas-mail is an abandoned package, replace it with symfony/mailer (#742)
* N°7920 - laminas-mail is an abandoned package, replace it with symfony/mailer * Fix composer following merge
This commit is contained in:
@@ -39,7 +39,7 @@ class EMailTest extends ItopTestCase {
|
||||
// Check if our charset is correctly set
|
||||
// We know this file may be used by other future test, but as we can't configure output filename, it is what it is
|
||||
$sEmailContent = file_get_contents(APPROOT.'log/mail.log');
|
||||
$this->assertStringContainsString('charset="UTF-8"', $sEmailContent);
|
||||
$this->assertStringContainsStringIgnoringCase('charset=UTF-8', $sEmailContent);
|
||||
|
||||
// Set our previous email transport value back, so it doesn't affect other tests
|
||||
$oConfig->Set('email_transport', $sCurrentEmailTransport);
|
||||
@@ -78,7 +78,7 @@ class EMailTest extends ItopTestCase {
|
||||
// Check if our charset is correctly set
|
||||
// We know this file may be used by other future test, but as we can't configure output filename, it is what it is
|
||||
$sEmailContent = file_get_contents(APPROOT.'log/mail.log');
|
||||
$this->assertStringContainsString('Content-Type: text/plain; charset=UTF-8', $sEmailContent);
|
||||
$this->assertStringContainsStringIgnoringCase('Content-Type: text/plain; charset=UTF-8', $sEmailContent);
|
||||
|
||||
// Set our previous email transport value back, so it doesn't affect other tests
|
||||
$oConfig->Set('email_transport', $sCurrentEmailTransport);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
use Combodo\iTop\Test\UnitTest\ItopTestCase;
|
||||
|
||||
class EmailLaminasTest extends ItopTestCase
|
||||
class EmailSymfonyTest extends ItopTestCase
|
||||
{
|
||||
public function testInlineCssIntoBodyContent(): void
|
||||
{
|
||||
@@ -131,7 +131,7 @@ CSS;
|
||||
HTML;
|
||||
|
||||
$sExpectedBody .= "\n"; // Emogriffer is always adding latest line feed, adding it in expected content !
|
||||
$sActualBody = $this->InvokeNonPublicStaticMethod(EMailLaminas::class, 'InlineCssIntoBodyContent', [$sInputBody, $sInputCss]);
|
||||
$sActualBody = $this->InvokeNonPublicStaticMethod(EMailSymfony::class, 'InlineCssIntoBodyContent', [$sInputBody, $sInputCss]);
|
||||
|
||||
$this->assertSame($sExpectedBody, $sActualBody);
|
||||
}
|
||||
Reference in New Issue
Block a user