| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function testMailServiceInjection() |
||
| 22 | { |
||
| 23 | $mailService = new MailServiceMock(); |
||
| 24 | $this->mailEvent = new MailEvent($mailService); |
||
| 25 | $this->assertSame($mailService, $this->mailEvent->getMailService()); |
||
| 26 | |||
| 27 | $mailService2 = new MailServiceMock(); |
||
| 28 | $this->mailEvent->setMailService($mailService2); |
||
| 29 | $this->assertNotSame($mailService, $this->mailEvent->getMailService()); |
||
| 30 | $this->assertSame($mailService2, $this->mailEvent->getMailService()); |
||
| 31 | } |
||
| 32 | |||
| 41 |