-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from HubSpot/feature/hubDB
add discoveries
- Loading branch information
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace HubSpot\Discovery\Cms\Hubdb; | ||
|
||
use HubSpot\Client\Cms\Hubdb\Api\DefaultApi; | ||
use HubSpot\Discovery\DiscoveryBase; | ||
|
||
/** | ||
* @method DefaultApi defaultApi() | ||
*/ | ||
class Discovery extends DiscoveryBase | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace spec\HubSpot\Discovery\Cms\Hubdb; | ||
|
||
use GuzzleHttp\Client; | ||
use HubSpot\Client\Cms\Hubdb\Api\DefaultApi; | ||
use HubSpot\Config; | ||
use PhpSpec\ObjectBehavior; | ||
|
||
class DiscoverySpec extends ObjectBehavior | ||
{ | ||
public function let(Client $client, Config $config) | ||
{ | ||
$this->beConstructedWith($client, $config); | ||
} | ||
|
||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(\HubSpot\Discovery\Cms\Hubdb\Discovery::class); | ||
} | ||
|
||
public function it_creates_clients() | ||
{ | ||
$this->defaultApi()->shouldHaveType(DefaultApi::class); | ||
} | ||
} |