Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | function it_should_create_from_call_tracking(CallTracking $callTracking) |
||
32 | { |
||
33 | $callTracking->getId()->willReturn(1); |
||
34 | $callTracking->getName()->willReturn('Simple call'); |
||
35 | $callTracking->getPhoneDid()->willReturn('+1 123 233 99 91'); |
||
36 | $callTracking->getPhoneDestination()->willReturn('+1 921 339 44 77'); |
||
37 | $callTracking->hasCallerId()->willReturn(true); |
||
38 | |||
39 | $message = new CallTrackingPatchMessage(); |
||
40 | $message->setId(1); |
||
41 | $message->setName('Simple call'); |
||
42 | $message->setPhoneDid('+1 123 233 99 91'); |
||
43 | $message->setPhoneDestination('+1 921 339 44 77'); |
||
44 | $message->setCallerId(true); |
||
45 | |||
46 | $this::createFromCallTracking($callTracking)->shouldBeLike($message); |
||
47 | } |
||
48 | } |
||
49 |