Viewing file: UndisclosedRecipientsSpaceTest.php (1.07 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* * File: UndisclosedRecipientsSpaceTest.php * Category: - * Author: M.Goldenbaum * Created: 09.03.23 02:24 * Updated: - * * Description: * - */
namespace Tests\fixtures;
/** * Class UndisclosedRecipientsSpaceTest * * @package Tests\fixtures */ class UndisclosedRecipientsSpaceTest extends FixtureTestCase {
/** * Test the fixture undisclosed_recipients_space.eml * * @return void */ public function testFixture() : void { $message = $this->getFixture("undisclosed_recipients_space.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; })); } }
|