forked from loafle/openapi-generator-original
Fix class name in test cases
This commit is contained in:
parent
a069ea1435
commit
dcccfa4b99
@ -343,7 +343,7 @@ class PetApiTest extends \PHPUnit_Framework_TestCase
|
||||
$config = new Swagger\Client\Configuration();
|
||||
$config->setHost('http://petstore.swagger.io/v2');
|
||||
$api_client = new Swagger\Client\APIClient($config);
|
||||
$store_api = new Swagger\Client\Api\StoreAPI($api_client);
|
||||
$store_api = new Swagger\Client\Api\StoreApi($api_client);
|
||||
// get inventory
|
||||
$get_response = $store_api->getInventory();
|
||||
|
||||
|
@ -39,7 +39,7 @@ class StoreApiTest extends \PHPUnit_Framework_TestCase
|
||||
// initialize the API client
|
||||
$config = (new Swagger\Client\Configuration())->setHost('http://petstore.swagger.io/v2');
|
||||
$api_client = new Swagger\Client\ApiClient($config);
|
||||
$store_api = new Swagger\Client\Api\StoreAPI($api_client);
|
||||
$store_api = new Swagger\Client\Api\StoreApi($api_client);
|
||||
// get inventory
|
||||
$get_response = $store_api->getInventory();
|
||||
|
||||
@ -57,7 +57,7 @@ class StoreApiTest extends \PHPUnit_Framework_TestCase
|
||||
// initialize the API client
|
||||
//$config = (new Swagger\Client\Configuration())->setHost('http://petstore.swagger.io/v2');
|
||||
$api_client = new Swagger\Client\ApiClient();
|
||||
$store_api = new Swagger\Client\Api\StoreAPI($api_client);
|
||||
$store_api = new Swagger\Client\Api\StoreApi($api_client);
|
||||
// get inventory
|
||||
$get_response = $store_api->getInventoryInObject();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user