| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function testHandle() |
||
| 19 | { |
||
| 20 | /** @var \PHPUnit_Framework_MockObject_MockObject|GraphQLService $service */ |
||
| 21 | $service = $this->getMockBuilder(GraphQLService::class) |
||
| 22 | ->disableOriginalConstructor() |
||
| 23 | ->setMethods(['getQueryResponse']) |
||
| 24 | ->getMock(); |
||
| 25 | |||
| 26 | $service->expects($this->once()) |
||
| 27 | ->method('getQueryResponse') |
||
| 28 | ->with(file_get_contents(UpdateSchemaLockCommand::INTROSPECTION_GRAPHQL), []); |
||
| 29 | |||
| 30 | $command = new UpdateSchemaLockCommand($service); |
||
| 31 | $command->handle(); |
||
| 32 | } |
||
| 34 |