Пример #1
0
 /**
  * @covers Mozu\Api\Clients\Platform\TenantClient::getTenantClient
  * @todo Implement testGetTenantClient().
  */
 public function testGetTenantClient()
 {
     $mozuClient = $this->object->getTenantClient($this->tenantId);
     $httpClient = $mozuClient->getHttpClient();
     $tenant = $mozuClient->execute()->getResult();
     $this->assertSame($tenant->id, $this->tenantId);
 }
Пример #2
0
 /**
  * Retrieve details about a specific tenant by providing the tenant ID.
  *
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @param int $tenantId Unique identifier of the Mozu tenant.
  * @return Promise - use $promise->then(sucessfn, errorfn). successFn is passed Mozu\Api\MozuResult. errorFn is passed Mozu\Api\ApiException
  */
 public function getTenantAsync($tenantId, $responseFields = null)
 {
     $mozuClient = TenantClient::getTenantClient($tenantId, $responseFields);
     return $mozuClient->executeAsync();
 }