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,32 @@
1
+<?php
2
+
3
+namespace Telnyx;
4
+
5
+/**
6
+ * @internal
7
+ * @covers \Telnyx\ApiOperations\Delete
8
+ */
9
+
10
+class DummyDelete extends ApiResource
11
+{
12
+    const OBJECT_NAME = 'ip_connection';
13
+
14
+    use \Telnyx\ApiOperations\Delete;
15
+}
16
+
17
+final class DeleteTest extends \Telnyx\TestCase
18
+{
19
+    const TEST_RESOURCE_ID = '1293384261075731499';
20
+
21
+    public function testTraitDelete()
22
+    {
23
+        $class = new DummyDelete(self::TEST_RESOURCE_ID);
24
+        $result = $class->delete();
25
+        $this->assertInstanceOf(\Telnyx\TelnyxObject::class, $result);
26
+    }
27
+    public function testTraitRemove()
28
+    {
29
+        $result = DummyDelete::remove(self::TEST_RESOURCE_ID);
30
+        $this->assertInstanceOf(\Telnyx\TelnyxObject::class, $result);
31
+    }
32
+}