| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function create_WithData_ValidPayload() |
||
| 31 | { |
||
| 32 | $this->mockClient() |
||
| 33 | ->expects($this->once()) |
||
| 34 | ->method("post") |
||
| 35 | ->with("proposals/33/lines", $this->anything()) |
||
| 36 | ->willReturn($this->buildResponse('Proposals/addLine')); |
||
| 37 | |||
| 38 | $proposalProduct = new ProposalProduct(2, 4); |
||
| 39 | $proposalProduct->setVatRate(6); |
||
| 40 | $proposalProduct->setUnitPrice(100); |
||
| 41 | $proposalProduct->setDescription('Description'); |
||
| 42 | $proposalProduct->setDiscount(10); |
||
| 43 | |||
| 44 | $this->service->addProduct(new ResourceId(33), $proposalProduct); |
||
| 45 | } |
||
| 47 |