Skip to content

Commit

Permalink
Update CRM Lists discoveries
Browse files Browse the repository at this point in the history
  • Loading branch information
ksvirkou-hubspot committed Oct 23, 2024
1 parent cbe293d commit 7214c3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Discovery/Crm/Lists/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

namespace HubSpot\Discovery\Crm\Lists;

use HubSpot\Client\Crm\Lists\Api\FoldersApi;
use HubSpot\Client\Crm\Lists\Api\ListsApi;
use HubSpot\Client\Crm\Lists\Api\MappingApi;
use HubSpot\Client\Crm\Lists\Api\MembershipsApi;
use HubSpot\Discovery\DiscoveryBase;

/**
* @method FoldersApi foldersApi()
* @method ListsApi listsApi()
* @method MappingApi mappingApi()
* @method MembershipsApi membershipsApi()
*/
class Discovery extends DiscoveryBase {}
4 changes: 4 additions & 0 deletions tests/spec/Discovery/Crm/Lists/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
namespace spec\HubSpot\Discovery\Crm\Lists;

use GuzzleHttp\Client;
use HubSpot\Client\Crm\Lists\Api\FoldersApi;
use HubSpot\Client\Crm\Lists\Api\ListsApi;
use HubSpot\Client\Crm\Lists\Api\MappingApi;
use HubSpot\Client\Crm\Lists\Api\MembershipsApi;
use HubSpot\Config;
use HubSpot\Discovery\Crm\Lists\Discovery;
Expand All @@ -23,7 +25,9 @@ public function it_is_initializable()

public function it_creates_clients()
{
$this->foldersApi()->shouldHaveType(FoldersApi::class);
$this->listsApi()->shouldHaveType(ListsApi::class);
$this->mappingApi()->shouldHaveType(MappingApi::class);
$this->membershipsApi()->shouldHaveType(MembershipsApi::class);
}
}

0 comments on commit 7214c3f

Please sign in to comment.