diff options
Diffstat (limited to 'Twilio/Tests/Integration/IpMessaging/V1/Service/ChannelTest.php')
-rw-r--r-- | Twilio/Tests/Integration/IpMessaging/V1/Service/ChannelTest.php | 22 |
1 files changed, 11 insertions, 11 deletions
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() { |