File tree Expand file tree Collapse file tree 2 files changed +23
-192
lines changed
app/code/Magento/Email/Test/Unit/Model
lib/internal/Magento/Framework/Mail/Test/Unit Expand file tree Collapse file tree 2 files changed +23
-192
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ namespace Magento \Framework \Mail \Test \Unit ;
7
+
8
+ class TransportTest extends \PHPUnit \Framework \TestCase
9
+ {
10
+ /**
11
+ * @covers \Magento\Framework\Mail\Transport::sendMessage
12
+ * @expectedException \Magento\Framework\Exception\MailException
13
+ * @expectedExceptionMessage Invalid email; contains no "To" header
14
+ */
15
+ public function testSendMessageBrokenMessage ()
16
+ {
17
+ $ transport = new \Magento \Framework \Mail \Transport (
18
+ new \Magento \Framework \Mail \Message ()
19
+ );
20
+
21
+ $ transport ->sendMessage ();
22
+ }
23
+ }
You can’t perform that action at this time.
0 commit comments