Browse code

Added README.md appinfo/info.xml appinfo/signature.json lib/Controller/AuthorApiController.php and the providers directory

DoubleBastionAdmin authored on 20/08/2022 16:33:00
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+<?php
2
+
3
+namespace Telnyx;
4
+
5
+/**
6
+ * @internal
7
+ * @covers \Telnyx\InboundChannel
8
+ */
9
+final class InboundChannelTest extends \Telnyx\TestCase
10
+{
11
+
12
+    public function testIsRetrievable()
13
+    {
14
+        $this->expectsRequest(
15
+            'get',
16
+            '/v2/phone_numbers/inbound_channels'
17
+        );
18
+        $resource = InboundChannel::retrieve();
19
+        $this->assertInstanceOf(\Telnyx\InboundChannel::class, $resource);
20
+    }
21
+
22
+    public function testIsUpdatable()
23
+    {
24
+        $this->expectsRequest(
25
+            'patch',
26
+            '/v2/phone_numbers/inbound_channels'
27
+        );
28
+        $resource = InboundChannel::update([
29
+            "channels" => 10,
30
+        ]);
31
+        $this->assertInstanceOf(\Telnyx\InboundChannel::class, $resource);
32
+    }
33
+}