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); } }