/**
  * @param Model $Model
  *
  * @depends testGetList
  */
 public function testGet(Model $Model)
 {
     $API = new API();
     $ProviderAPI = new ProviderAPI();
     $this->mockResponse(200, ProviderTest::getMockData());
     $Provider = $ProviderAPI->getByUri($Model->getProvider());
     $this->mockResponse(200, $this->getMockData());
     $Model = $API->get($Provider->getName(), $Model->getName());
     $this->assertInstanceOf(Model::class, $Model);
 }
 /**
  * Because at the moment DockerCloud's API doesn't reply 'provider' as promised in document
  * I have to manually get a result from ProviderAPI to test 'get' function by RegionAPI
  */
 public function testGet()
 {
     $API = new API();
     $ProviderAPI = new ProviderAPI();
     // Get whatever first replied responsed from server, I don't care...
     $this->mockGetListResponse(200, ProviderTest::getMockData());
     $ProviderGetListResponse = $ProviderAPI->getList();
     $Provider = $ProviderGetListResponse->getObjects()[0];
     $this->mockResponse(200, $this->getMockData());
     $Model = $API->getByUri($Provider->getRegions()[0]);
     $this->mockResponse(200, $this->getMockData());
     $Model = $API->get($Provider->getName(), $Model->getName());
     $this->assertInstanceOf(Model::class, $Model);
 }
 /**
  * @return string
  */
 protected function getMockData()
 {
     return APITest::getMockData();
 }