mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Reintroduce Webklex IMAP for ticket processing as PHP-IMAP is no longer being developed. This is optional for now and considered beta can be found in cron/ticket_email_parser.php
This commit is contained in:
42
plugins/vendor/webklex/php-imap/tests/fixtures/UndisclosedRecipientsMinusTest.php
vendored
Normal file
42
plugins/vendor/webklex/php-imap/tests/fixtures/UndisclosedRecipientsMinusTest.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/*
|
||||
* File: PlainOnlyTest.php
|
||||
* Category: -
|
||||
* Author: M.Goldenbaum
|
||||
* Created: 09.03.23 02:24
|
||||
* Updated: -
|
||||
*
|
||||
* Description:
|
||||
* -
|
||||
*/
|
||||
|
||||
namespace Tests\fixtures;
|
||||
|
||||
/**
|
||||
* Class PlainOnlyTest
|
||||
*
|
||||
* @package Tests\fixtures
|
||||
*/
|
||||
class UndisclosedRecipientsMinusTest extends FixtureTestCase {
|
||||
|
||||
/**
|
||||
* Test the fixture undisclosed_recipients_minus.eml
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testFixture() : void {
|
||||
$message = $this->getFixture("undisclosed_recipients_minus.eml");
|
||||
|
||||
self::assertEquals("test", $message->subject);
|
||||
self::assertEquals("Hi!", $message->getTextBody());
|
||||
self::assertFalse($message->hasHTMLBody());
|
||||
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);
|
||||
self::assertEquals([
|
||||
"undisclosed-recipients",
|
||||
""
|
||||
], $message->to->map(function ($item) {
|
||||
return $item->mailbox;
|
||||
}));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user