Skip to content

Commit

Permalink
fix documentation test
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Apr 15, 2017
1 parent 6f9df21 commit 8a90257
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions tests/Api/Tool/DocumentationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,23 +131,6 @@ public function testGetDetail()
"$schema": "http:\/\/json-schema.org\/draft-04\/schema#",
"id": "urn:schema.phpsx.org#",
"definitions": {
"Collection": {
"type": "object",
"title": "collection",
"description": "Collection result",
"properties": {
"totalResults": {
"type": "integer"
},
"entry": {
"type": "array",
"items": {
"$ref": "#\/definitions\/Entity"
}
}
},
"class": "PSX\\Project\\Tests\\Model\\Collection"
},
"Entity": {
"type": "object",
"title": "entity",
Expand Down Expand Up @@ -197,6 +180,23 @@ public function testGetDetail()
],
"class": "PSX\\Project\\Tests\\Model\\Entity"
},
"Collection": {
"type": "object",
"title": "collection",
"description": "Collection result",
"properties": {
"totalResults": {
"type": "integer"
},
"entry": {
"type": "array",
"items": {
"$ref": "#\/definitions\/Entity"
}
}
},
"class": "PSX\\Project\\Tests\\Model\\Collection"
},
"Message": {
"type": "object",
"title": "message",
Expand All @@ -210,6 +210,15 @@ public function testGetDetail()
}
},
"class": "PSX\\Project\\Tests\\Model\\Message"
},
"GET-200-response": {
"$ref": "#\/definitions\/Collection"
},
"POST-request": {
"$ref": "#\/definitions\/Entity"
},
"POST-201-response": {
"$ref": "#\/definitions\/Message"
}
}
},
Expand Down

0 comments on commit 8a90257

Please sign in to comment.