| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,24 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+namespace Telnyx; |
|
| 4 |
+ |
|
| 5 |
+/** |
|
| 6 |
+ * @internal |
|
| 7 |
+ * @covers \Telnyx\ApiOperations\Create |
|
| 8 |
+ */ |
|
| 9 |
+ |
|
| 10 |
+class DummyCreate extends ApiResource |
|
| 11 |
+{
|
|
| 12 |
+ const OBJECT_NAME = 'ip_connection'; |
|
| 13 |
+ |
|
| 14 |
+ use \Telnyx\ApiOperations\Create; |
|
| 15 |
+} |
|
| 16 |
+ |
|
| 17 |
+final class CreateTest extends \Telnyx\TestCase |
|
| 18 |
+{
|
|
| 19 |
+ public function testTraitCreate() |
|
| 20 |
+ {
|
|
| 21 |
+ $result = DummyCreate::create(['connection_name'=>'connection name']); |
|
| 22 |
+ $this->assertInstanceOf(\Telnyx\IPConnection::class, $result); |
|
| 23 |
+ } |
|
| 24 |
+} |