1 | <?php |
||
8 | class CallTrackingPostMessageSpec extends ObjectBehavior |
||
9 | { |
||
10 | function it_is_initializable() |
||
11 | { |
||
12 | $this->shouldHaveType(CallTrackingPostMessage::class); |
||
13 | } |
||
14 | |||
15 | function it_should_build() |
||
16 | { |
||
17 | $this->setName('Simple call'); |
||
18 | $this->setPhoneDid('+1 123 233 99 91'); |
||
19 | $this->setPhoneDestination('+1 921 339 44 77'); |
||
20 | $this->setCallerId(true); |
||
21 | |||
22 | $data = [ |
||
23 | 'name' => 'Simple call', |
||
24 | 'phoneDid' => '+1 123 233 99 91', |
||
25 | 'phoneDestination' => '+1 921 339 44 77', |
||
26 | 'callerId' => 1, |
||
27 | ]; |
||
28 | |||
29 | $this->build()->shouldReturn($data); |
||
30 | } |
||
31 | } |
||
32 |