| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function testList() |
||
| 26 | { |
||
| 27 | $client = $this->mockApiClient(Client::class); |
||
| 28 | $client->expects()->httpGet('/department/list', [ |
||
| 29 | 'id' => 1, |
||
| 30 | 'fetch_child' => false, |
||
| 31 | 'lang' => 'zh_CN' |
||
| 32 | ])->andReturn('mock-result')->once(); |
||
| 33 | $this->assertSame('mock-result', $client->list(1)); |
||
| 34 | } |
||
| 36 |