mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +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:
49
plugins/vendor/webklex/php-imap/tests/fixtures/BccTest.php
vendored
Normal file
49
plugins/vendor/webklex/php-imap/tests/fixtures/BccTest.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/*
|
||||
* File: BccTest.php
|
||||
* Category: -
|
||||
* Author: M.Goldenbaum
|
||||
* Created: 09.03.23 02:24
|
||||
* Updated: -
|
||||
*
|
||||
* Description:
|
||||
* -
|
||||
*/
|
||||
|
||||
namespace Tests\fixtures;
|
||||
|
||||
/**
|
||||
* Class BccTest
|
||||
*
|
||||
* @package Tests\fixtures
|
||||
*/
|
||||
class BccTest extends FixtureTestCase {
|
||||
|
||||
/**
|
||||
* Test the fixture bcc.eml
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testFixture(): void {
|
||||
$message = $this->getFixture("bcc.eml");
|
||||
|
||||
self::assertEquals("test", $message->subject);
|
||||
self::assertSame([
|
||||
'personal' => '',
|
||||
'mailbox' => 'return-path',
|
||||
'host' => 'here.com',
|
||||
'mail' => 'return-path@here.com',
|
||||
'full' => 'return-path@here.com',
|
||||
], $message->return_path->first()->toArray());
|
||||
self::assertEquals("1.0", $message->mime_version);
|
||||
self::assertEquals("text/plain", $message->content_type);
|
||||
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("to@here.com", $message->to);
|
||||
self::assertEquals("A_€@{è_Z <bcc@here.com>", $message->bcc);
|
||||
self::assertEquals("sender@here.com", $message->sender);
|
||||
self::assertEquals("reply-to@here.com", $message->reply_to);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user