Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function testConstructStoresTheDependencies() |
||
15 | { |
||
16 | $serverUrlHelperMock = $this->createMock(ServerUrl::class); |
||
17 | $mailerServiceMock = $this->createMock(Sendmail::class); |
||
18 | $configServiceMock = [uniqid()]; |
||
19 | |||
20 | $mailer = new Mailer( |
||
21 | $serverUrlHelperMock, |
||
22 | $mailerServiceMock, |
||
23 | $configServiceMock |
||
24 | ); |
||
25 | |||
26 | // Assertions |
||
27 | $this->assertAttributeEquals($serverUrlHelperMock, 'serverUrlHelper', $mailer); |
||
28 | $this->assertAttributeEquals($mailerServiceMock, 'mailerService', $mailer); |
||
29 | $this->assertAttributeEquals($configServiceMock, 'configService', $mailer); |
||
30 | } |
||
31 | } |
||
32 |