Browse code

removed Telnyx Plivo Twilio Flowroute appinfo/info.xml appinfo/signature.json README.md lib/Controller/AuthorApiController.php

DoubleBastionAdmin authored on 20/08/2022 16:26:33
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,62 +0,0 @@
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
-
11
-/**
12
- * Class AccountTest
13
- * @package Plivo\Tests\Resources
14
- */
15
-class AccountTest extends BaseTestCase
16
-{
17
-    /**
18
-     *
19
-     */
20
-    function testAccountGetDetails()
21
-    {
22
-        $request = new PlivoRequest(
23
-            'GET',
24
-            'Account/MAXXXXXXXXXXXXXXXXXX/',
25
-            []);
26
-        $body = file_get_contents(__DIR__ . '/../Mocks/accountGetResponse.json');
27
-
28
-        $this->mock(new PlivoResponse($request,200, $body));
29
-
30
-        $actual = $this->client->accounts->get();
31
-
32
-        $this->assertRequest($request);
33
-
34
-        self::assertNotNull($actual);
35
-
36
-        self::assertEquals($actual->authId, "MAXXXXXXXXXXXXXXXXXX");
37
-    }
38
-
39
-    function testAccountModify()
40
-    {
41
-        $request = new PlivoRequest(
42
-            'POST',
43
-            'Account/MAXXXXXXXXXXXXXXXXXX/',
44
-            [
45
-                'name' => "name",
46
-                'city' => "city",
47
-                'address' => "address"
48
-            ]);
49
-        $body = file_get_contents(__DIR__ . '/../Mocks/accountModifyResponse.json');
50
-
51
-        $this->mock(new PlivoResponse($request,200, $body));
52
-
53
-        $actual = $this->client->accounts->update("name", "city", "address");
54
-
55
-        $this->assertRequest($request);
56
-
57
-        self::assertNotNull($actual);
58
-
59
-        self::assertEquals($actual->message, "changed");
60
-        self::assertEquals($actual->apiId, "964edb6e-3f08-11e7-920b-0600a1193e9b");
61
-    }
62
-}
63 0
\ No newline at end of file
Browse code

Created repository.

DoubleBastionAdmin authored on 01/03/2022 23:47:00
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,62 @@
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
+
11
+/**
12
+ * Class AccountTest
13
+ * @package Plivo\Tests\Resources
14
+ */
15
+class AccountTest extends BaseTestCase
16
+{
17
+    /**
18
+     *
19
+     */
20
+    function testAccountGetDetails()
21
+    {
22
+        $request = new PlivoRequest(
23
+            'GET',
24
+            'Account/MAXXXXXXXXXXXXXXXXXX/',
25
+            []);
26
+        $body = file_get_contents(__DIR__ . '/../Mocks/accountGetResponse.json');
27
+
28
+        $this->mock(new PlivoResponse($request,200, $body));
29
+
30
+        $actual = $this->client->accounts->get();
31
+
32
+        $this->assertRequest($request);
33
+
34
+        self::assertNotNull($actual);
35
+
36
+        self::assertEquals($actual->authId, "MAXXXXXXXXXXXXXXXXXX");
37
+    }
38
+
39
+    function testAccountModify()
40
+    {
41
+        $request = new PlivoRequest(
42
+            'POST',
43
+            'Account/MAXXXXXXXXXXXXXXXXXX/',
44
+            [
45
+                'name' => "name",
46
+                'city' => "city",
47
+                'address' => "address"
48
+            ]);
49
+        $body = file_get_contents(__DIR__ . '/../Mocks/accountModifyResponse.json');
50
+
51
+        $this->mock(new PlivoResponse($request,200, $body));
52
+
53
+        $actual = $this->client->accounts->update("name", "city", "address");
54
+
55
+        $this->assertRequest($request);
56
+
57
+        self::assertNotNull($actual);
58
+
59
+        self::assertEquals($actual->message, "changed");
60
+        self::assertEquals($actual->apiId, "964edb6e-3f08-11e7-920b-0600a1193e9b");
61
+    }
62
+}
0 63
\ No newline at end of file