Skip to content

Commit

Permalink
Merge pull request #230 from HubSpot/fix/hubdb
Browse files Browse the repository at this point in the history
added new apis (hubDB)
  • Loading branch information
ksvirkou-hubspot authored and GitHub Enterprise committed Dec 1, 2020
2 parents 60e05b5 + 7a64d78 commit 3fa2a8a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
8 changes: 6 additions & 2 deletions lib/Discovery/Cms/Hubdb/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

namespace HubSpot\Discovery\Cms\Hubdb;

use HubSpot\Client\Cms\Hubdb\Api\DefaultApi;
use HubSpot\Client\Cms\Hubdb\Api\RowsApi;
use HubSpot\Client\Cms\Hubdb\Api\RowsBatchApi;
use HubSpot\Client\Cms\Hubdb\Api\TablesApi;
use HubSpot\Discovery\DiscoveryBase;

/**
* @method DefaultApi defaultApi()
* @method RowsApi rowsApi()
* @method RowsBatchApi rowsBatchApi()
* @method TablesApi tablesApi()
*/
class Discovery extends DiscoveryBase
{
Expand Down
11 changes: 8 additions & 3 deletions tests/spec/Discovery/Cms/Hubdb/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
namespace spec\HubSpot\Discovery\Cms\Hubdb;

use GuzzleHttp\Client;
use HubSpot\Client\Cms\Hubdb\Api\DefaultApi;
use HubSpot\Client\Cms\Hubdb\Api\RowsApi;
use HubSpot\Client\Cms\Hubdb\Api\RowsBatchApi;
use HubSpot\Client\Cms\Hubdb\Api\TablesApi;
use HubSpot\Config;
use HubSpot\Discovery\Cms\Hubdb\Discovery;
use PhpSpec\ObjectBehavior;

class DiscoverySpec extends ObjectBehavior
Expand All @@ -16,11 +19,13 @@ public function let(Client $client, Config $config)

public function it_is_initializable()
{
$this->shouldHaveType(\HubSpot\Discovery\Cms\Hubdb\Discovery::class);
$this->shouldHaveType(Discovery::class);
}

public function it_creates_clients()
{
$this->defaultApi()->shouldHaveType(DefaultApi::class);
$this->rowsApi()->shouldHaveType(RowsApi::class);
$this->rowsBatchApi()->shouldHaveType(RowsBatchApi::class);
$this->tablesApi()->shouldHaveType(TablesApi::class);
}
}

0 comments on commit 3fa2a8a

Please sign in to comment.