Skip to content

Commit f2ba9df

Browse files
author
Dustin Wheeler
committed
Adjust test to use stock Petstore example specification.
1 parent 1230233 commit f2ba9df

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

tests/PetstoreTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,13 @@ public function it_has_a_list_of_pets()
4040
}
4141

4242
/** @test */
43-
public function if_pets_have_extra_appendages_openapi_cares()
43+
public function throws_exception_if_required_object_property_not_found()
4444
{
4545
$this->expectExceptionMessage('Response did not match provided JSON schema.');
4646

4747
$this->stub(PetsController::class, 'show', [
4848
'id' => 1,
49-
'name' => 'Cow',
50-
'legs' => 10
49+
// 'name' => 'Cow',
5150
]);
5251

5352
$this->get('api/pets/1');

tests/openapis/petstore/openapi.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ components:
100100
type: string
101101
tag:
102102
type: string
103-
legs:
104-
type: integer
105-
minimum: 0
106-
maximum: 4
107103
Pets:
108104
type: array
109105
items:

0 commit comments

Comments
 (0)