From de934ea276c9f24ec0b9b4e9137eed9f86232234 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Thu, 22 Dec 2022 17:09:45 +0300 Subject: [PATCH] fix crm()->pipelines() APIs list --- lib/Discovery/Crm/Pipelines/Discovery.php | 8 ++++++-- tests/spec/Discovery/Crm/Pipelines/DiscoverySpec.php | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/Discovery/Crm/Pipelines/Discovery.php b/lib/Discovery/Crm/Pipelines/Discovery.php index 005a078e..39b76801 100644 --- a/lib/Discovery/Crm/Pipelines/Discovery.php +++ b/lib/Discovery/Crm/Pipelines/Discovery.php @@ -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 { diff --git a/tests/spec/Discovery/Crm/Pipelines/DiscoverySpec.php b/tests/spec/Discovery/Crm/Pipelines/DiscoverySpec.php index 3dc96284..c25e1079 100644 --- a/tests/spec/Discovery/Crm/Pipelines/DiscoverySpec.php +++ b/tests/spec/Discovery/Crm/Pipelines/DiscoverySpec.php @@ -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; @@ -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); } }