diff options
Diffstat (limited to 'Twilio/Tests/Integration/IpMessaging')
7 files changed, 74 insertions, 74 deletions
diff --git a/Twilio/Tests/Integration/IpMessaging/V1/CredentialTest.php b/Twilio/Tests/Integration/IpMessaging/V1/CredentialTest.php index d57a03f..e901f75 100644 --- a/Twilio/Tests/Integration/IpMessaging/V1/CredentialTest.php +++ b/Twilio/Tests/Integration/IpMessaging/V1/CredentialTest.php @@ -24,10 +24,10 @@ class CredentialTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Credentials' - ))); + )); } public function testReadFullResponse() { @@ -62,7 +62,7 @@ class CredentialTest extends HolodeckTestCase { $actual = $this->twilio->ipMessaging->v1->credentials->read(); - $this->assertTrue(count($actual) > 0); + $this->assertGreaterThan(0, count($actual)); } public function testReadEmptyResponse() { @@ -101,12 +101,12 @@ class CredentialTest extends HolodeckTestCase { 'Type' => "gcm", ); - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Credentials', null, $values - ))); + )); } public function testCreateResponse() { @@ -139,10 +139,10 @@ class CredentialTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testFetchResponse() { @@ -175,10 +175,10 @@ class CredentialTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testUpdateResponse() { @@ -211,10 +211,10 @@ class CredentialTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'delete', 'https://ip-messaging.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testDeleteResponse() { diff --git a/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MemberTest.php b/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MemberTest.php index f754d9b..3d7eb17 100644 --- a/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MemberTest.php +++ b/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MemberTest.php @@ -26,10 +26,10 @@ class MemberTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testFetchResponse() { @@ -73,12 +73,12 @@ class MemberTest extends HolodeckTestCase { 'Identity' => "identity", ); - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members', null, $values - ))); + )); } public function testCreateResponse() { @@ -118,10 +118,10 @@ class MemberTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members' - ))); + )); } public function testReadFullResponse() { @@ -161,7 +161,7 @@ class MemberTest extends HolodeckTestCase { ->channels("CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") ->members->read(); - $this->assertTrue(count($actual) > 0); + $this->assertGreaterThan(0, count($actual)); } public function testReadEmptyResponse() { @@ -200,10 +200,10 @@ class MemberTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'delete', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testDeleteResponse() { diff --git a/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MessageTest.php b/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MessageTest.php index c78981f..9a8feac 100644 --- a/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MessageTest.php +++ b/Twilio/Tests/Integration/IpMessaging/V1/Service/Channel/MessageTest.php @@ -26,10 +26,10 @@ class MessageTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testCreateRequest() { @@ -46,12 +46,12 @@ class MessageTest extends HolodeckTestCase { 'Body' => "body", ); - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages', null, $values - ))); + )); } public function testReadRequest() { @@ -64,10 +64,10 @@ class MessageTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages' - ))); + )); } public function testDeleteRequest() { @@ -80,10 +80,10 @@ class MessageTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'delete', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testUpdateRequest() { @@ -100,11 +100,11 @@ class MessageTest extends HolodeckTestCase { 'Body' => "body", ); - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', null, $values - ))); + )); } }
\ No newline at end of file diff --git a/Twilio/Tests/Integration/IpMessaging/V1/Service/ChannelTest.php b/Twilio/Tests/Integration/IpMessaging/V1/Service/ChannelTest.php index e372b8d..4636bf1 100644 --- a/Twilio/Tests/Integration/IpMessaging/V1/Service/ChannelTest.php +++ b/Twilio/Tests/Integration/IpMessaging/V1/Service/ChannelTest.php @@ -25,10 +25,10 @@ class ChannelTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testFetchResponse() { @@ -70,10 +70,10 @@ class ChannelTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'delete', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testDeleteResponse() { @@ -97,10 +97,10 @@ class ChannelTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels' - ))); + )); } public function testCreateResponse() { @@ -142,10 +142,10 @@ class ChannelTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels' - ))); + )); } public function testReadFullResponse() { @@ -188,7 +188,7 @@ class ChannelTest extends HolodeckTestCase { $actual = $this->twilio->ipMessaging->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") ->channels->read(); - $this->assertTrue(count($actual) > 0); + $this->assertGreaterThan(0, count($actual)); } public function testReadEmptyResponse() { @@ -225,10 +225,10 @@ class ChannelTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testUpdateResponse() { diff --git a/Twilio/Tests/Integration/IpMessaging/V1/Service/RoleTest.php b/Twilio/Tests/Integration/IpMessaging/V1/Service/RoleTest.php index 8ea8b86..3cb378e 100644 --- a/Twilio/Tests/Integration/IpMessaging/V1/Service/RoleTest.php +++ b/Twilio/Tests/Integration/IpMessaging/V1/Service/RoleTest.php @@ -25,10 +25,10 @@ class RoleTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles/RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testFetchResponse() { @@ -69,10 +69,10 @@ class RoleTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'delete', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles/RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testDeleteResponse() { @@ -102,12 +102,12 @@ class RoleTest extends HolodeckTestCase { 'Permission' => array('permission'), ); - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles', null, $values - ))); + )); } public function testCreateResponse() { @@ -148,10 +148,10 @@ class RoleTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles' - ))); + )); } public function testReadFullResponse() { @@ -193,7 +193,7 @@ class RoleTest extends HolodeckTestCase { $actual = $this->twilio->ipMessaging->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") ->roles->read(); - $this->assertTrue(count($actual) > 0); + $this->assertGreaterThan(0, count($actual)); } public function testReadEmptyResponse() { @@ -235,12 +235,12 @@ class RoleTest extends HolodeckTestCase { 'Permission' => array('permission'), ); - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles/RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', null, $values - ))); + )); } public function testUpdateResponse() { diff --git a/Twilio/Tests/Integration/IpMessaging/V1/Service/UserTest.php b/Twilio/Tests/Integration/IpMessaging/V1/Service/UserTest.php index 2a4f5eb..ada0643 100644 --- a/Twilio/Tests/Integration/IpMessaging/V1/Service/UserTest.php +++ b/Twilio/Tests/Integration/IpMessaging/V1/Service/UserTest.php @@ -25,10 +25,10 @@ class UserTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testFetchResponse() { @@ -65,10 +65,10 @@ class UserTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'delete', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testDeleteResponse() { @@ -97,12 +97,12 @@ class UserTest extends HolodeckTestCase { 'RoleSid' => "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", ); - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users', null, $values - ))); + )); } public function testCreateResponse() { @@ -139,10 +139,10 @@ class UserTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users' - ))); + )); } public function testReadFullResponse() { @@ -180,7 +180,7 @@ class UserTest extends HolodeckTestCase { $actual = $this->twilio->ipMessaging->v1->services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") ->users->read(); - $this->assertTrue(count($actual) > 0); + $this->assertGreaterThan(0, count($actual)); } public function testReadEmptyResponse() { @@ -217,10 +217,10 @@ class UserTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testUpdateResponse() { diff --git a/Twilio/Tests/Integration/IpMessaging/V1/ServiceTest.php b/Twilio/Tests/Integration/IpMessaging/V1/ServiceTest.php index 23db34f..741acf3 100644 --- a/Twilio/Tests/Integration/IpMessaging/V1/ServiceTest.php +++ b/Twilio/Tests/Integration/IpMessaging/V1/ServiceTest.php @@ -24,10 +24,10 @@ class ServiceTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testFetchResponse() { @@ -70,10 +70,10 @@ class ServiceTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'delete', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testDeleteResponse() { @@ -99,12 +99,12 @@ class ServiceTest extends HolodeckTestCase { 'FriendlyName' => "friendlyName", ); - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Services', null, $values - ))); + )); } public function testCreateResponse() { @@ -147,10 +147,10 @@ class ServiceTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'get', 'https://ip-messaging.twilio.com/v1/Services' - ))); + )); } public function testReadFullResponse() { @@ -195,7 +195,7 @@ class ServiceTest extends HolodeckTestCase { $actual = $this->twilio->ipMessaging->v1->services->read(); - $this->assertTrue(count($actual) > 0); + $this->assertGreaterThan(0, count($actual)); } public function testReadEmptyResponse() { @@ -230,10 +230,10 @@ class ServiceTest extends HolodeckTestCase { } catch (DeserializeException $e) {} catch (TwilioException $e) {} - $this->assertTrue($this->holodeck->hasRequest(new Request( + $this->assertRequest(new Request( 'post', 'https://ip-messaging.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - ))); + )); } public function testUpdateResponse() { |