summaryrefslogtreecommitdiffstats
path: root/Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php')
-rw-r--r--Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php80
1 files changed, 0 insertions, 80 deletions
diff --git a/Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php b/Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php
deleted file mode 100644
index 2be4508..0000000
--- a/Twilio/Tests/Integration/Preview/Wireless/DeviceTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?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->assertTrue($this->holodeck->hasRequest(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->assertTrue($this->holodeck->hasRequest(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->assertTrue($this->holodeck->hasRequest(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->assertTrue($this->holodeck->hasRequest(new Request(
- 'post',
- 'https://preview.twilio.com/wireless/Devices/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
- }
-} \ No newline at end of file