Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function canBuildBodyReference() |
||
24 | { |
||
25 | $repository = new DocumentRepository('src/Tests/Functional/PetStore/app'); |
||
26 | $document = $repository->get('swagger/petstore.yml'); |
||
27 | $operation = new OperationObject($document, '/store/order', 'post'); |
||
28 | |||
29 | $pointer = $operation->createParameterSchemaPointer('body.properties.quantity'); |
||
30 | |||
31 | $expected = '/paths/~1store~1order/post/x-request-schema/properties/body/properties/quantity'; |
||
32 | $this->assertEquals($expected, $pointer); |
||
33 | } |
||
34 | } |
||
35 |