summaryrefslogtreecommitdiffstats
path: root/Twilio/Tests/Integration/Trunking/V1/TrunkTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'Twilio/Tests/Integration/Trunking/V1/TrunkTest.php')
-rw-r--r--Twilio/Tests/Integration/Trunking/V1/TrunkTest.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/Twilio/Tests/Integration/Trunking/V1/TrunkTest.php b/Twilio/Tests/Integration/Trunking/V1/TrunkTest.php
index 6b622fd..65e109c 100644
--- a/Twilio/Tests/Integration/Trunking/V1/TrunkTest.php
+++ b/Twilio/Tests/Integration/Trunking/V1/TrunkTest.php
@@ -24,10 +24,10 @@ class TrunkTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -74,10 +74,10 @@ class TrunkTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -99,10 +99,10 @@ class TrunkTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks'
- )));
+ ));
}
public function testCreateResponse() {
@@ -149,10 +149,10 @@ class TrunkTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://trunking.twilio.com/v1/Trunks'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -201,7 +201,7 @@ class TrunkTest extends HolodeckTestCase {
$actual = $this->twilio->trunking->v1->trunks->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -236,10 +236,10 @@ class TrunkTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {