summaryrefslogtreecommitdiffstats
path: root/Twilio/Tests/Integration/Notifications/V1/Service/NotificationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'Twilio/Tests/Integration/Notifications/V1/Service/NotificationTest.php')
-rw-r--r--Twilio/Tests/Integration/Notifications/V1/Service/NotificationTest.php67
1 files changed, 0 insertions, 67 deletions
diff --git a/Twilio/Tests/Integration/Notifications/V1/Service/NotificationTest.php b/Twilio/Tests/Integration/Notifications/V1/Service/NotificationTest.php
deleted file mode 100644
index 0b1e7cd..0000000
--- a/Twilio/Tests/Integration/Notifications/V1/Service/NotificationTest.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-/**
- * This code was generated by
- * \ / _ _ _| _ _
- * | (_)\/(_)(_|\/| |(/_ v1.0.0
- * / /
- */
-
-namespace Twilio\Tests\Integration\Notifications\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->notifications->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
- ->notifications->create();
- } catch (DeserializeException $e) {}
- catch (TwilioException $e) {}
-
- $this->assertTrue($this->holodeck->hasRequest(new Request(
- 'post',
- 'https://notifications.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->notifications->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
- ->notifications->create();
-
- $this->assertNotNull($actual);
- }
-} \ No newline at end of file