| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function setUp() |
||
| 28 | { |
||
| 29 | parent::setUp(); |
||
| 30 | |||
| 31 | $mockRequest = $this->createMock(RequestInterface::class); |
||
| 32 | $mockRequest->expects($this->once())->method('withHeader')->will($this->returnValue($mockRequest)); |
||
| 33 | |||
| 34 | $this->messageFactory = $this->createMock(MessageFactory::class); |
||
| 35 | $this->messageFactory->expects($this->once())->method('createRequest')->will($this->returnValue($mockRequest)); |
||
| 36 | |||
| 37 | $mockResponse = $this->createMock(ResponseInterface::class); |
||
| 38 | $mockResponse->expects($this->once())->method('getStatusCode')->will($this->returnValue(200)); |
||
| 39 | $mockResponse->expects($this->once())->method('getBody')->will($this->returnValue(json_encode([]))); |
||
| 40 | |||
| 41 | $this->client = $this->createMock(Client::class); |
||
| 42 | $this->client->expects($this->once())->method('sendRequest')->will($this->returnValue($mockResponse)); |
||
| 43 | } |
||
| 44 | |||
| 52 |