| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 52 | public function testBuildWithSubscriber() |
||
| 53 | { |
||
| 54 | /** @var MockObject|Subscriber $subscriber */ |
||
| 55 | $subscriber = $this->createMock(Subscriber::class); |
||
| 56 | |||
| 57 | $email = '[email protected]'; |
||
| 58 | |||
| 59 | $subscriber->expects($this->once()) |
||
| 60 | ->method('getEmail') |
||
| 61 | ->willReturn($email); |
||
| 62 | |||
| 63 | $this->assertEquals( |
||
| 64 | ['email' => $email], |
||
| 65 | (new ContactBuilder())->buildWithSubscriber($subscriber) |
||
| 66 | ); |
||
| 70 |