Skip to content

Commit 2ae7da1

Browse files
Merge pull request #457 from HubSpot/feature/eventsDiscovery
Update Events Send discovery
2 parents b307321 + 28a02f5 commit 2ae7da1

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

lib/Discovery/Events/Send/Discovery.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
namespace HubSpot\Discovery\Events\Send;
44

5-
use HubSpot\Client\Events\Send\Api\CustomEventDataApi;
5+
use HubSpot\Client\Events\Send\Api\BasicApi;
6+
use HubSpot\Client\Events\Send\Api\BatchApi;
67
use HubSpot\Discovery\DiscoveryBase;
78

89
/**
9-
* @method CustomEventDataApi customEventDataApi()
10+
* @method BasicApi basicApi()
11+
* @method BatchApi batchApi()
1012
*/
1113
class Discovery extends DiscoveryBase {}

tests/spec/Discovery/Events/Send/DiscoverySpec.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
namespace spec\HubSpot\Discovery\Events\Send;
44

55
use GuzzleHttp\Client;
6-
use HubSpot\Client\Events\Send\Api\CustomEventDataApi;
6+
use HubSpot\Client\Events\Send\Api\BasicApi;
7+
use HubSpot\Client\Events\Send\Api\BatchApi;
78
use HubSpot\Config;
89
use HubSpot\Discovery\Events\Send\Discovery;
910
use PhpSpec\ObjectBehavior;
@@ -22,6 +23,7 @@ public function it_is_initializable()
2223

2324
public function it_creates_clients()
2425
{
25-
$this->customEventDataApi()->shouldHaveType(CustomEventDataApi::class);
26+
$this->basicApi()->shouldHaveType(BasicApi::class);
27+
$this->batchApi()->shouldHaveType(BatchApi::class);
2628
}
2729
}

0 commit comments

Comments
 (0)