summaryrefslogtreecommitdiffstats
path: root/Twilio/Tests/Integration
diff options
context:
space:
mode:
Diffstat (limited to 'Twilio/Tests/Integration')
-rw-r--r--Twilio/Tests/Integration/Notify/V1/CredentialTest.php230
-rw-r--r--Twilio/Tests/Integration/Notify/V1/Service/BindingTest.php218
-rw-r--r--Twilio/Tests/Integration/Notify/V1/Service/NotificationTest.php67
-rw-r--r--Twilio/Tests/Integration/Notify/V1/ServiceTest.php256
-rw-r--r--Twilio/Tests/Integration/Preview/Sync/Service/DocumentTest.php99
-rw-r--r--Twilio/Tests/Integration/Preview/Sync/Service/SyncList/SyncListItemTest.php110
-rw-r--r--Twilio/Tests/Integration/Preview/Sync/Service/SyncListTest.php78
-rw-r--r--Twilio/Tests/Integration/Preview/Sync/Service/SyncMap/SyncMapItemTest.php111
-rw-r--r--Twilio/Tests/Integration/Preview/Sync/Service/SyncMapTest.php78
-rw-r--r--Twilio/Tests/Integration/Preview/Sync/ServiceTest.php88
-rw-r--r--Twilio/Tests/Integration/Preview/Wireless/CommandTest.php67
-rw-r--r--Twilio/Tests/Integration/Preview/Wireless/Device/UsageTest.php33
-rw-r--r--Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php80
-rw-r--r--Twilio/Tests/Integration/Preview/Wireless/RatePlanTest.php46
14 files changed, 1561 insertions, 0 deletions
diff --git a/Twilio/Tests/Integration/Notify/V1/CredentialTest.php b/Twilio/Tests/Integration/Notify/V1/CredentialTest.php
new file mode 100644
index 0000000..16922a3
--- /dev/null
+++ b/Twilio/Tests/Integration/Notify/V1/CredentialTest.php
@@ -0,0 +1,230 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Notify\V1;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class CredentialTest extends HolodeckTestCase {
+ public function testReadRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->credentials->read();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://notify.twilio.com/v1/Credentials'
+ ));
+ }
+
+ public function testReadFullResponse() {
+ $this->holodeck->mock(new Response(
+ 200,
+ '
+ {
+ "credentials": [
+ {
+ "sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "friendly_name": "Test slow create",
+ "type": "apn",
+ "sandbox": "False",
+ "date_created": "2015-10-07T17:50:01Z",
+ "date_updated": "2015-10-07T17:50:01Z",
+ "url": "https://notify.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ }
+ ],
+ "meta": {
+ "page": 0,
+ "page_size": 1,
+ "first_page_url": "https://notify.twilio.com/v1/Credentials?PageSize=1&Page=0",
+ "previous_page_url": null,
+ "url": "https://notify.twilio.com/v1/Credentials?PageSize=1&Page=0",
+ "next_page_url": null,
+ "key": "credentials"
+ }
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->credentials->read();
+
+ $this->assertGreaterThan(0, count($actual));
+ }
+
+ public function testReadEmptyResponse() {
+ $this->holodeck->mock(new Response(
+ 200,
+ '
+ {
+ "credentials": [],
+ "meta": {
+ "page": 0,
+ "page_size": 1,
+ "first_page_url": "https://notify.twilio.com/v1/Credentials?PageSize=1&Page=0",
+ "previous_page_url": null,
+ "url": "https://notify.twilio.com/v1/Credentials?PageSize=1&Page=0",
+ "next_page_url": null,
+ "key": "credentials"
+ }
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->credentials->read();
+
+ $this->assertNotNull($actual);
+ }
+
+ public function testCreateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->credentials->create("gcm");
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $values = array(
+ 'Type' => "gcm",
+ );
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://notify.twilio.com/v1/Credentials',
+ null,
+ $values
+ ));
+ }
+
+ public function testCreateResponse() {
+ $this->holodeck->mock(new Response(
+ 201,
+ '
+ {
+ "sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "friendly_name": "Test slow create",
+ "type": "apn",
+ "sandbox": "False",
+ "date_created": "2015-10-07T17:50:01Z",
+ "date_updated": "2015-10-07T17:50:01Z",
+ "url": "https://notify.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->credentials->create("gcm");
+
+ $this->assertNotNull($actual);
+ }
+
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->credentials("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://notify.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testFetchResponse() {
+ $this->holodeck->mock(new Response(
+ 200,
+ '
+ {
+ "sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "friendly_name": "Test slow create",
+ "type": "apn",
+ "sandbox": "False",
+ "date_created": "2015-10-07T17:50:01Z",
+ "date_updated": "2015-10-07T17:50:01Z",
+ "url": "https://notify.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->credentials("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch();
+
+ $this->assertNotNull($actual);
+ }
+
+ public function testUpdateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->credentials("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->update();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://notify.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testUpdateResponse() {
+ $this->holodeck->mock(new Response(
+ 200,
+ '
+ {
+ "sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "friendly_name": "Test slow create",
+ "type": "apn",
+ "sandbox": "False",
+ "date_created": "2015-10-07T17:50:01Z",
+ "date_updated": "2015-10-07T17:50:01Z",
+ "url": "https://notify.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->credentials("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->update();
+
+ $this->assertNotNull($actual);
+ }
+
+ public function testDeleteRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->credentials("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->delete();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'delete',
+ 'https://notify.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testDeleteResponse() {
+ $this->holodeck->mock(new Response(
+ 204,
+ null
+ ));
+
+ $actual = $this->twilio->notify->v1->credentials("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->delete();
+
+ $this->assertTrue($actual);
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Notify/V1/Service/BindingTest.php b/Twilio/Tests/Integration/Notify/V1/Service/BindingTest.php
new file mode 100644
index 0000000..9749c10
--- /dev/null
+++ b/Twilio/Tests/Integration/Notify/V1/Service/BindingTest.php
@@ -0,0 +1,218 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Notify\V1\Service;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class BindingTest extends HolodeckTestCase {
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->bindings("BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testFetchResponse() {
+ $this->holodeck->mock(new Response(
+ 200,
+ '
+ {
+ "sid": "BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "date_created": "2016-03-24T23:24:45Z",
+ "date_updated": "2016-03-24T23:24:45Z",
+ "notification_protocol_version": "3",
+ "endpoint": "abcd",
+ "identity": "jing",
+ "binding_type": "apn",
+ "address": "1234",
+ "tags": [],
+ "url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->bindings("BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch();
+
+ $this->assertNotNull($actual);
+ }
+
+ public function testDeleteRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->bindings("BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->delete();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'delete',
+ 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testDeleteResponse() {
+ $this->holodeck->mock(new Response(
+ 204,
+ null
+ ));
+
+ $actual = $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->bindings("BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->delete();
+
+ $this->assertTrue($actual);
+ }
+
+ public function testCreateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->bindings->create("endpoint", "identity", "apn", "address");
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $values = array(
+ 'Endpoint' => "endpoint",
+ 'Identity' => "identity",
+ 'BindingType' => "apn",
+ 'Address' => "address",
+ );
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings',
+ null,
+ $values
+ ));
+ }
+
+ public function testCreateResponse() {
+ $this->holodeck->mock(new Response(
+ 201,
+ '
+ {
+ "sid": "BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "date_created": "2016-03-24T23:24:45Z",
+ "date_updated": "2016-03-24T23:24:45Z",
+ "notification_protocol_version": "3",
+ "endpoint": "abcd",
+ "identity": "jing",
+ "binding_type": "apn",
+ "address": "1234",
+ "tags": [],
+ "url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->bindings->create("endpoint", "identity", "apn", "address");
+
+ $this->assertNotNull($actual);
+ }
+
+ public function testReadRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->bindings->read();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings'
+ ));
+ }
+
+ public function testReadFullResponse() {
+ $this->holodeck->mock(new Response(
+ 200,
+ '
+ {
+ "meta": {
+ "page": 0,
+ "page_size": 1,
+ "first_page_url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?PageSize=1&Page=0",
+ "previous_page_url": null,
+ "url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?PageSize=1&Page=0",
+ "next_page_url": null,
+ "key": "bindings"
+ },
+ "bindings": [
+ {
+ "sid": "BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "date_created": "2016-03-24T23:24:45Z",
+ "date_updated": "2016-03-24T23:24:45Z",
+ "notification_protocol_version": "3",
+ "endpoint": "abcd",
+ "identity": "jing",
+ "binding_type": "apn",
+ "address": "1234",
+ "tags": [],
+ "url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ }
+ ]
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->bindings->read();
+
+ $this->assertGreaterThan(0, count($actual));
+ }
+
+ public function testReadEmptyResponse() {
+ $this->holodeck->mock(new Response(
+ 200,
+ '
+ {
+ "meta": {
+ "page": 0,
+ "page_size": 1,
+ "first_page_url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?PageSize=1&Page=0",
+ "previous_page_url": null,
+ "url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?PageSize=1&Page=0",
+ "next_page_url": null,
+ "key": "bindings"
+ },
+ "bindings": []
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->bindings->read();
+
+ $this->assertNotNull($actual);
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Notify/V1/Service/NotificationTest.php b/Twilio/Tests/Integration/Notify/V1/Service/NotificationTest.php
new file mode 100644
index 0000000..51362c1
--- /dev/null
+++ b/Twilio/Tests/Integration/Notify/V1/Service/NotificationTest.php
@@ -0,0 +1,67 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Notify\V1\Service;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class NotificationTest extends HolodeckTestCase {
+ public function testCreateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->notifications->create();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications'
+ ));
+ }
+
+ public function testCreateResponse() {
+ $this->holodeck->mock(new Response(
+ 201,
+ '
+ {
+ "sid": "NOb8021351170b4e1286adaac3fdd6d082",
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "service_sid": "IS699b53e02da45a1ba9d13b7d7d2766af",
+ "date_created": "2016-03-24T23:42:28Z",
+ "identities": [
+ "jing"
+ ],
+ "tags": [],
+ "priority": "high",
+ "ttl": 2419200,
+ "title": "test",
+ "body": "body",
+ "sound": null,
+ "action": null,
+ "data": null,
+ "apn": null,
+ "gcm": null,
+ "sms": null,
+ "facebook_messenger": null
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->notifications->create();
+
+ $this->assertNotNull($actual);
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Notify/V1/ServiceTest.php b/Twilio/Tests/Integration/Notify/V1/ServiceTest.php
new file mode 100644
index 0000000..8a35615
--- /dev/null
+++ b/Twilio/Tests/Integration/Notify/V1/ServiceTest.php
@@ -0,0 +1,256 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Notify\V1;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class ServiceTest extends HolodeckTestCase {
+ public function testCreateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->services->create();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://notify.twilio.com/v1/Services'
+ ));
+ }
+
+ public function testCreateResponse() {
+ $this->holodeck->mock(new Response(
+ 201,
+ '
+ {
+ "sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "friendly_name": "733c7f0f-6541-42ec-84ce-e2ae1cac588c",
+ "date_created": "2016-03-09T20:22:31Z",
+ "date_updated": "2016-03-09T20:22:31Z",
+ "apn_credential_sid": null,
+ "gcm_credential_sid": null,
+ "messaging_service_sid": null,
+ "facebook_messenger_page_id": "4",
+ "default_apn_notification_protocol_version": "3",
+ "default_gcm_notification_protocol_version": "3",
+ "url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "links": {
+ "bindings": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings",
+ "notifications": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications"
+ }
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->services->create();
+
+ $this->assertNotNull($actual);
+ }
+
+ public function testDeleteRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->delete();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'delete',
+ 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testDeleteResponse() {
+ $this->holodeck->mock(new Response(
+ 204,
+ null
+ ));
+
+ $actual = $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->delete();
+
+ $this->assertTrue($actual);
+ }
+
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testFetchResponse() {
+ $this->holodeck->mock(new Response(
+ 200,
+ '
+ {
+ "sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "friendly_name": "733c7f0f-6541-42ec-84ce-e2ae1cac588c",
+ "date_created": "2016-03-09T20:22:31Z",
+ "date_updated": "2016-03-09T20:22:31Z",
+ "apn_credential_sid": null,
+ "gcm_credential_sid": null,
+ "messaging_service_sid": null,
+ "facebook_messenger_page_id": "4",
+ "default_apn_notification_protocol_version": "3",
+ "default_gcm_notification_protocol_version": "3",
+ "url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "links": {
+ "bindings": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings",
+ "notifications": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications"
+ }
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch();
+
+ $this->assertNotNull($actual);
+ }
+
+ public function testReadRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->services->read();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://notify.twilio.com/v1/Services'
+ ));
+ }
+
+ public function testReadFullResponse() {
+ $this->holodeck->mock(new Response(
+ 200,
+ '
+ {
+ "meta": {
+ "page": 0,
+ "page_size": 1,
+ "first_page_url": "https://notify.twilio.com/v1/Services?PageSize=1&Page=0",
+ "previous_page_url": null,
+ "url": "https://notify.twilio.com/v1/Services?PageSize=1&Page=0",
+ "next_page_url": null,
+ "key": "services"
+ },
+ "services": [
+ {
+ "sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "friendly_name": "733c7f0f-6541-42ec-84ce-e2ae1cac588c",
+ "date_created": "2016-03-09T20:22:31Z",
+ "date_updated": "2016-03-09T20:22:31Z",
+ "apn_credential_sid": null,
+ "gcm_credential_sid": null,
+ "messaging_service_sid": null,
+ "facebook_messenger_page_id": "4",
+ "default_apn_notification_protocol_version": "3",
+ "default_gcm_notification_protocol_version": "3",
+ "url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "links": {
+ "bindings": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings",
+ "notifications": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications"
+ }
+ }
+ ]
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->services->read();
+
+ $this->assertGreaterThan(0, count($actual));
+ }
+
+ public function testReadEmptyResponse() {
+ $this->holodeck->mock(new Response(
+ 200,
+ '
+ {
+ "meta": {
+ "page": 0,
+ "page_size": 50,
+ "first_page_url": "https://notify.twilio.com/v1/Services?PageSize=50&Page=0",
+ "previous_page_url": null,
+ "url": "https://notify.twilio.com/v1/Services?PageSize=50&Page=0",
+ "next_page_url": null,
+ "key": "services"
+ },
+ "services": []
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->services->read();
+
+ $this->assertNotNull($actual);
+ }
+
+ public function testUpdateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->update();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testUpdateResponse() {
+ $this->holodeck->mock(new Response(
+ 200,
+ '
+ {
+ "sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "friendly_name": "733c7f0f-6541-42ec-84ce-e2ae1cac588c",
+ "date_created": "2016-03-09T20:22:31Z",
+ "date_updated": "2016-03-09T20:22:31Z",
+ "apn_credential_sid": null,
+ "gcm_credential_sid": null,
+ "default_apn_notification_protocol_version": "3",
+ "default_gcm_notification_protocol_version": "3",
+ "messaging_service_sid": null,
+ "facebook_messenger_page_id": "4",
+ "url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "links": {
+ "bindings": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings",
+ "notifications": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications"
+ }
+ }
+ '
+ ));
+
+ $actual = $this->twilio->notify->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->update();
+
+ $this->assertNotNull($actual);
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Preview/Sync/Service/DocumentTest.php b/Twilio/Tests/Integration/Preview/Sync/Service/DocumentTest.php
new file mode 100644
index 0000000..476b66d
--- /dev/null
+++ b/Twilio/Tests/Integration/Preview/Sync/Service/DocumentTest.php
@@ -0,0 +1,99 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Preview\Sync\Service;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class DocumentTest extends HolodeckTestCase {
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->documents("sid")->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents/sid'
+ ));
+ }
+
+ public function testDeleteRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->documents("sid")->delete();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'delete',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents/sid'
+ ));
+ }
+
+ public function testCreateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->documents->create();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents'
+ ));
+ }
+
+ public function testReadRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->documents->read();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents'
+ ));
+ }
+
+ public function testUpdateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->documents("sid")->update("{}");
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $values = array(
+ 'Data' => "{}",
+ );
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents/sid',
+ null,
+ $values
+ ));
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Preview/Sync/Service/SyncList/SyncListItemTest.php b/Twilio/Tests/Integration/Preview/Sync/Service/SyncList/SyncListItemTest.php
new file mode 100644
index 0000000..437bb0f
--- /dev/null
+++ b/Twilio/Tests/Integration/Preview/Sync/Service/SyncList/SyncListItemTest.php
@@ -0,0 +1,110 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Preview\Sync\Service\SyncList;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class SyncListItemTest extends HolodeckTestCase {
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncLists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncListItems(1)->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/1'
+ ));
+ }
+
+ public function testDeleteRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncLists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncListItems(1)->delete();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'delete',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/1'
+ ));
+ }
+
+ public function testCreateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncLists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncListItems->create("{}");
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $values = array(
+ 'Data' => "{}",
+ );
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items',
+ null,
+ $values
+ ));
+ }
+
+ public function testReadRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncLists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncListItems->read();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items'
+ ));
+ }
+
+ public function testUpdateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncLists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncListItems(1)->update("{}");
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $values = array(
+ 'Data' => "{}",
+ );
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/1',
+ null,
+ $values
+ ));
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Preview/Sync/Service/SyncListTest.php b/Twilio/Tests/Integration/Preview/Sync/Service/SyncListTest.php
new file mode 100644
index 0000000..16a99a7
--- /dev/null
+++ b/Twilio/Tests/Integration/Preview/Sync/Service/SyncListTest.php
@@ -0,0 +1,78 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Preview\Sync\Service;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class SyncListTest extends HolodeckTestCase {
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncLists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testDeleteRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncLists("ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->delete();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'delete',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists/ESaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testCreateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncLists->create();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists'
+ ));
+ }
+
+ public function testReadRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncLists->read();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists'
+ ));
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Preview/Sync/Service/SyncMap/SyncMapItemTest.php b/Twilio/Tests/Integration/Preview/Sync/Service/SyncMap/SyncMapItemTest.php
new file mode 100644
index 0000000..e991f4f
--- /dev/null
+++ b/Twilio/Tests/Integration/Preview/Sync/Service/SyncMap/SyncMapItemTest.php
@@ -0,0 +1,111 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Preview\Sync\Service\SyncMap;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class SyncMapItemTest extends HolodeckTestCase {
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMaps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMapItems("key")->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/key'
+ ));
+ }
+
+ public function testDeleteRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMaps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMapItems("key")->delete();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'delete',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/key'
+ ));
+ }
+
+ public function testCreateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMaps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMapItems->create("key", "{}");
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $values = array(
+ 'Key' => "key",
+ 'Data' => "{}",
+ );
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items',
+ null,
+ $values
+ ));
+ }
+
+ public function testReadRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMaps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMapItems->read();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items'
+ ));
+ }
+
+ public function testUpdateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMaps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMapItems("key")->update("{}");
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $values = array(
+ 'Data' => "{}",
+ );
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items/key',
+ null,
+ $values
+ ));
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Preview/Sync/Service/SyncMapTest.php b/Twilio/Tests/Integration/Preview/Sync/Service/SyncMapTest.php
new file mode 100644
index 0000000..4ef693c
--- /dev/null
+++ b/Twilio/Tests/Integration/Preview/Sync/Service/SyncMapTest.php
@@ -0,0 +1,78 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Preview\Sync\Service;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class SyncMapTest extends HolodeckTestCase {
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMaps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testDeleteRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMaps("MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->delete();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'delete',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testCreateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMaps->create();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps'
+ ));
+ }
+
+ public function testReadRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->syncMaps->read();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps'
+ ));
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Preview/Sync/ServiceTest.php b/Twilio/Tests/Integration/Preview/Sync/ServiceTest.php
new file mode 100644
index 0000000..d522668
--- /dev/null
+++ b/Twilio/Tests/Integration/Preview/Sync/ServiceTest.php
@@ -0,0 +1,88 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Preview\Sync;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class ServiceTest extends HolodeckTestCase {
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testDeleteRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->delete();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'delete',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testCreateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services->create();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/Sync/Services'
+ ));
+ }
+
+ public function testReadRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services->read();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/Sync/Services'
+ ));
+ }
+
+ public function testUpdateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->sync->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->update();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/Sync/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Preview/Wireless/CommandTest.php b/Twilio/Tests/Integration/Preview/Wireless/CommandTest.php
new file mode 100644
index 0000000..dd52653
--- /dev/null
+++ b/Twilio/Tests/Integration/Preview/Wireless/CommandTest.php
@@ -0,0 +1,67 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Preview\Wireless;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class CommandTest extends HolodeckTestCase {
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->wireless->commands("DCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/wireless/Commands/DCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testReadRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->wireless->commands->read();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/wireless/Commands'
+ ));
+ }
+
+ public function testCreateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->wireless->commands->create("device", "command");
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $values = array(
+ 'Device' => "device",
+ 'Command' => "command",
+ );
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/wireless/Commands',
+ null,
+ $values
+ ));
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Preview/Wireless/Device/UsageTest.php b/Twilio/Tests/Integration/Preview/Wireless/Device/UsageTest.php
new file mode 100644
index 0000000..62713ba
--- /dev/null
+++ b/Twilio/Tests/Integration/Preview/Wireless/Device/UsageTest.php
@@ -0,0 +1,33 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Preview\Wireless\Device;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class UsageTest extends HolodeckTestCase {
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->wireless->devices("DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
+ ->usage()->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/wireless/Devices/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Usage'
+ ));
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php b/Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php
new file mode 100644
index 0000000..7b66e64
--- /dev/null
+++ b/Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php
@@ -0,0 +1,80 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Preview\Wireless;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class DeviceTest extends HolodeckTestCase {
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->wireless->devices("DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/wireless/Devices/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+
+ public function testReadRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->wireless->devices->read();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/wireless/Devices'
+ ));
+ }
+
+ public function testCreateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->wireless->devices->create("ratePlan");
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $values = array(
+ 'RatePlan' => "ratePlan",
+ );
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/wireless/Devices',
+ null,
+ $values
+ ));
+ }
+
+ public function testUpdateRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->wireless->devices("DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")->update();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'post',
+ 'https://preview.twilio.com/wireless/Devices/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+ ));
+ }
+} \ No newline at end of file
diff --git a/Twilio/Tests/Integration/Preview/Wireless/RatePlanTest.php b/Twilio/Tests/Integration/Preview/Wireless/RatePlanTest.php
new file mode 100644
index 0000000..0dde6cd
--- /dev/null
+++ b/Twilio/Tests/Integration/Preview/Wireless/RatePlanTest.php
@@ -0,0 +1,46 @@
+<?php
+
+/**
+ * This code was generated by
+ * \ / _ _ _| _ _
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
+ * / /
+ */
+
+namespace Twilio\Tests\Integration\Preview\Wireless;
+
+use Twilio\Exceptions\DeserializeException;
+use Twilio\Exceptions\TwilioException;
+use Twilio\Http\Response;
+use Twilio\Tests\HolodeckTestCase;
+use Twilio\Tests\Request;
+
+class RatePlanTest extends HolodeckTestCase {
+ public function testReadRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->wireless->ratePlans->read();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/wireless/RatePlans'
+ ));
+ }
+
+ public function testFetchRequest() {
+ $this->holodeck->mock(new Response(500, ''));
+
+ try {
+ $this->twilio->preview->wireless->ratePlans("sid")->fetch();
+ } catch (DeserializeException $e) {}
+ catch (TwilioException $e) {}
+
+ $this->assertRequest(new Request(
+ 'get',
+ 'https://preview.twilio.com/wireless/RatePlans/sid'
+ ));
+ }
+} \ No newline at end of file