| Conditions | 2 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function testSendEmail() |
||
| 17 | { |
||
| 18 | $form = new PasswordResetRequestForm(); |
||
| 19 | $form->email = "[email protected]"; |
||
| 20 | $this->assertTrue($form->validate()); |
||
| 21 | try { |
||
| 22 | $res = $form->sendEmail(); |
||
| 23 | $this->assertTrue($res); |
||
| 24 | } catch (Swift_TransportException $e) { |
||
| 25 | return; |
||
| 26 | } |
||
| 27 | $form->email = "[email protected]"; |
||
| 28 | $res = $form->sendEmail(); |
||
| 29 | $this->assertFalse($res); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |