|
30 | 30 |
|
31 | 31 | /**
|
32 | 32 | * Class TransportBuilderTest
|
| 33 | + * |
| 34 | + * @SuppressWarnings(PHPMD.CouplingBetweenObjects) |
33 | 35 | */
|
34 | 36 | class TransportBuilderTest extends TestCase
|
35 | 37 | {
|
@@ -157,12 +159,18 @@ public function testGetTransport(
|
157 | 159 | ->willReturn($emailMessage);
|
158 | 160 |
|
159 | 161 | $template = $this->createMock(Template::class);
|
160 |
| - $template->expects($this->once())->method('setVars')->with($this->equalTo($vars))->will($this->returnSelf()); |
161 |
| - $template->expects($this->once())->method('setOptions')->with($this->equalTo($options))->will($this->returnSelf()); |
162 |
| - $template->expects($this->once())->method('getSubject')->willReturn('Email Subject'); |
163 |
| - $template->expects($this->once())->method('setData')->with($this->equalTo($data))->will($this->returnSelf()); |
164 |
| - $template->expects($this->once())->method('getProcessedTemplate')->with($vars)->willReturn($bodyText); |
165 |
| - $template->expects($this->once())->method('setTemplateFilter')->with($filter); |
| 162 | + $template->expects($this->once())->method('setVars') |
| 163 | + ->with($this->equalTo($vars))->will($this->returnSelf()); |
| 164 | + $template->expects($this->once())->method('setOptions') |
| 165 | + ->with($this->equalTo($options))->will($this->returnSelf()); |
| 166 | + $template->expects($this->once())->method('getSubject') |
| 167 | + ->willReturn('Email Subject'); |
| 168 | + $template->expects($this->once())->method('setData') |
| 169 | + ->with($this->equalTo($data))->will($this->returnSelf()); |
| 170 | + $template->expects($this->once())->method('getProcessedTemplate') |
| 171 | + ->with($vars)->willReturn($bodyText); |
| 172 | + $template->expects($this->once())->method('setTemplateFilter') |
| 173 | + ->with($filter); |
166 | 174 |
|
167 | 175 | $this->templateFactoryMock->expects($this->once())
|
168 | 176 | ->method('get')
|
|
0 commit comments