| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 1 | public function send(Email $email) |
|
| 22 | { |
||
| 23 | 1 | $headers = $email->getHeaders( |
|
| 24 | 1 | ['from', 'sender', 'replyTo', 'readReceipt', 'returnPath', 'to', 'cc', 'subject'] |
|
| 25 | ); |
||
| 26 | |||
| 27 | 1 | trim($this->_headersToString($headers)); |
|
| 28 | 1 | $message = trim(implode("\r\n", (array)$email->message())); |
|
| 29 | 1 | $result = ['headers' => $headers, 'message' => $message]; |
|
| 30 | |||
| 31 | 1 | Configure::write('test_transport_email', $result); |
|
| 32 | |||
| 33 | 1 | return $result; |
|
| 34 | } |
||
| 35 | } |
||
| 36 |