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:
Stephen Abello
2025-09-17 16:04:20 +02:00
committed by GitHub
parent 8982f7e0e3
commit 428d2c6356
645 changed files with 20889 additions and 81911 deletions

View File

@@ -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);

View File

@@ -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);
}