Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TransportBuilderMock.php
Go to the documentation of this file.
1 <?php
8 
10 {
14  protected $_sentMessage;
15 
21  protected function reset()
22  {
23  $this->_sentMessage = $this->message;
24  parent::reset();
25  }
26 
32  public function getSentMessage()
33  {
34  return $this->_sentMessage;
35  }
36 
42  public function getTransport()
43  {
44  $this->prepareMessage();
45  $this->reset();
46  return new \Magento\TestFramework\Mail\TransportInterfaceMock();
47  }
48 }