| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function testCustomRepository() |
||
| 11 | { |
||
| 12 | /** @var CustomTestRepository $repository */ |
||
| 13 | $repository = $this->getManager()->getRepository(CustomEntity::class); |
||
| 14 | $this->getClient()->push($this->getResponseMock(true, (object)['customField' => 'custom-response'])); |
||
| 15 | |||
| 16 | /** @var \StdClass $data */ |
||
| 17 | $data = $repository->doCustomStuff(); |
||
| 18 | |||
| 19 | self::assertInstanceOf(\stdClass::class, $data); |
||
| 20 | self::assertEquals('custom-response', $data->customField); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |