Skip to content

Commit e02e28d

Browse files
committed
Remove redundant unit test
The transport now can take any implementation of the message interface as argument
1 parent 00bc417 commit e02e28d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/internal/Magento/Framework/Mail/Test/Unit/TransportTest.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,8 @@
55
*/
66
namespace Magento\Framework\Mail\Test\Unit;
77

8-
use Zend\Mail\Headers;
9-
108
class TransportTest extends \PHPUnit_Framework_TestCase
119
{
12-
/**
13-
* @expectedException \InvalidArgumentException
14-
* @expectedExceptionMessage The message should be an instance of \Zend\Mail\Message
15-
*/
16-
public function testTransportWithIncorrectMessageObject()
17-
{
18-
new \Magento\Framework\Mail\Transport(
19-
$this->getMock(\Magento\Framework\Mail\MessageInterface::class)
20-
);
21-
}
22-
2310
/**
2411
* @covers \Magento\Framework\Mail\Transport::sendMessage
2512
* @expectedException \Magento\Framework\Exception\MailException

0 commit comments

Comments
 (0)