| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | public function testListService() |
||
| 53 | { |
||
| 54 | $this->runCommandDebug('grpc:generate', [ |
||
| 55 | 'proto' => $this->proto |
||
| 56 | ]); |
||
| 57 | |||
| 58 | file_put_contents($this->app->dir('app') . 'src/Service/EchoService.php', GenerateTest::SERVICE); |
||
| 59 | |||
| 60 | $out = $this->runCommandDebug('grpc:services'); |
||
| 61 | |||
| 62 | $this->assertContains('service.Echo', $out); |
||
| 63 | $this->assertContains('Spiral\App\Service\EchoService', $out); |
||
| 64 | } |
||
| 65 | } |