mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Migrated away from PHP Mail Parser to the new WebKlex PHP IMAP Mail Parser this will open the way to support OAUTH2 for Mail servers such as Microsoft 365 and Google Workspaces
This commit is contained in:
37
plugins/php-imap/tests/fixtures/SimpleMultipartTest.php
vendored
Normal file
37
plugins/php-imap/tests/fixtures/SimpleMultipartTest.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/*
|
||||
* File: SimpleMultipartTest.php
|
||||
* Category: -
|
||||
* Author: M.Goldenbaum
|
||||
* Created: 09.03.23 02:24
|
||||
* Updated: -
|
||||
*
|
||||
* Description:
|
||||
* -
|
||||
*/
|
||||
|
||||
namespace Tests\fixtures;
|
||||
|
||||
/**
|
||||
* Class SimpleMultipartTest
|
||||
*
|
||||
* @package Tests\fixtures
|
||||
*/
|
||||
class SimpleMultipartTest extends FixtureTestCase {
|
||||
|
||||
/**
|
||||
* Test the fixture simple_multipart.eml
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testFixture() : void {
|
||||
$message = $this->getFixture("simple_multipart.eml");
|
||||
|
||||
self::assertEquals("test", $message->getSubject());
|
||||
self::assertEquals("MyPlain", $message->getTextBody());
|
||||
self::assertEquals("MyHtml", $message->getHTMLBody());
|
||||
self::assertEquals("2017-09-27 10:48:51", $message->date->first()->setTimezone('UTC')->format("Y-m-d H:i:s"));
|
||||
self::assertEquals("from@there.com", $message->from->first()->mail);
|
||||
self::assertEquals("to@here.com", $message->to->first()->mail);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user