Browse code

added appinfo/info.xml appinfo/signature.json CHANGELOG.txt lib/AppInfo/Application.php css/style.css providers/Plivo

DoubleBastionAdmin authored on 05/11/2025 13:35:09
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+<?php
2
+
3
+namespace Resources;
4
+
5
+
6
+use Plivo\Http\PlivoRequest;
7
+use Plivo\Http\PlivoResponse;
8
+use Plivo\Tests\BaseTestCase;
9
+
10
+class ZentrunkCallTest extends BaseTestCase{
11
+    function testZentrunkCallList(){
12
+        $request = new PlivoRequest(
13
+            'GET',
14
+            'Account/MAXXXXXXXXXXXXXXXXXX/Call/',
15
+            [
16
+                'limit' => 2,
17
+                'offset' => 2
18
+            ]
19
+        );
20
+        $body = file_get_contents(__DIR__ . '/../Mocks/zentrunkCallsListResponse.json');
21
+        
22
+        $this->mock(new PlivoResponse($request,200, $body));
23
+        
24
+        $actual = $this->client->ZentrunkCalls->list([
25
+            'limit' => 2,
26
+            'offset' => 2
27
+        ]);
28
+
29
+        $this->assertRequest($request);
30
+
31
+        self::assertNotNull($actual);
32
+    }
33
+}
0 34
\ No newline at end of file