Skip to content

Commit

Permalink
fix crm()->pipelines() APIs list
Browse files Browse the repository at this point in the history
  • Loading branch information
ksvirkou-hubspot committed Dec 22, 2022
1 parent 1c7533a commit de934ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/Discovery/Crm/Pipelines/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@

namespace HubSpot\Discovery\Crm\Pipelines;

use HubSpot\Client\Crm\Pipelines\Api\PipelineAuditsApi;
use HubSpot\Client\Crm\Pipelines\Api\PipelinesApi;
use HubSpot\Client\Crm\Pipelines\Api\PipelineStageAuditsApi;
use HubSpot\Client\Crm\Pipelines\Api\PipelineStagesApi;
use HubSpot\Discovery\DiscoveryBase;

/**
* @method PipelineStagesApi pipelineStagesApi()
* @method PipelinesApi pipelinesApi()
* @method PipelineAuditsApi pipelineAuditsApi()
* @method PipelinesApi pipelinesApi()
* @method PipelineStageAuditsApi pipelineStageAuditsApi()
* @method PipelineStagesApi pipelineStagesApi()
*/
class Discovery extends DiscoveryBase
{
Expand Down
6 changes: 5 additions & 1 deletion tests/spec/Discovery/Crm/Pipelines/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
namespace spec\HubSpot\Discovery\Crm\Pipelines;

use GuzzleHttp\Client;
use HubSpot\Client\Crm\Pipelines\Api\PipelineAuditsApi;
use HubSpot\Client\Crm\Pipelines\Api\PipelinesApi;
use HubSpot\Client\Crm\Pipelines\Api\PipelineStageAuditsApi;
use HubSpot\Client\Crm\Pipelines\Api\PipelineStagesApi;
use HubSpot\Config;
use HubSpot\Discovery\Crm\Pipelines\Discovery;
Expand All @@ -23,7 +25,9 @@ public function it_is_initializable()

public function it_creates_clients()
{
$this->pipelineStagesApi()->shouldHaveType(PipelineStagesApi::class);
$this->pipelineAuditsApi()->shouldHaveType(PipelineAuditsApi::class);
$this->pipelinesApi()->shouldHaveType(PipelinesApi::class);
$this->pipelineStageAuditsApi()->shouldHaveType(PipelineStageAuditsApi::class);
$this->pipelineStagesApi()->shouldHaveType(PipelineStagesApi::class);
}
}

0 comments on commit de934ea

Please sign in to comment.