Skip to content

Commit

Permalink
fix php test using getter (#7525)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Sep 28, 2020
1 parent 7a98580 commit 8b39335
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,21 @@ public function testGetPetByIdWithHttpInfo()
$this->assertSame($status_code, 200);
$this->assertSame($response_headers['Content-Type'], ['application/json']);
}
/* comment out due to https://github.com/OpenAPITools/openapi-generator/pull/7376#issuecomment-699722244

public function testFindPetByStatus()
{
$response = $this->api->findPetsByStatus('available');
$this->assertGreaterThan(0, count($response)); // at least one object returned

$this->assertSame(get_class($response[0]), Pet::class); // verify the object is Pet
foreach ($response as $pet) {
$this->assertSame($pet['status'], 'available');
$this->assertSame($pet->getStatus(), 'available');
}

$response = $this->api->findPetsByStatus('unknown_and_incorrect_status');
$this->assertCount(0, $response);
}
*/

public function testUpdatePet()
{
$petId = 10001;
Expand Down

0 comments on commit 8b39335

Please sign in to comment.