Total Complexity | 5 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class WebhookTest extends TestCase |
||
11 | { |
||
12 | protected function setUp(): void |
||
13 | { |
||
14 | parent::setUp(); |
||
15 | $this->mockClient = $this->mock(Client::class); |
||
|
|||
16 | } |
||
17 | |||
18 | /** @test */ |
||
19 | public function the_client_can_return_a_webhook_resource() |
||
20 | { |
||
21 | $client = new Client('example_key'); |
||
22 | $webhook = $client->webhook(); |
||
23 | |||
24 | $this->assertInstanceOf(Webhook::class, $webhook); |
||
25 | $this->assertInstanceOf(Resource::class, $webhook); |
||
26 | } |
||
27 | |||
28 | /** @test */ |
||
29 | public function webhooks_can_be_set() |
||
41 | } |
||
42 | |||
43 | /** @test */ |
||
44 | public function webhooks_can_be_revoked() |
||
54 | } |
||
55 | |||
56 | /** @test */ |
||
57 | public function webhooks_can_be_retrieved() |
||
63 | } |
||
64 | } |
||
65 |