summaryrefslogtreecommitdiffstats
path: root/Twilio/Tests/Integration/Trunking
diff options
context:
space:
mode:
Diffstat (limited to 'Twilio/Tests/Integration/Trunking')
-rw-r--r--Twilio/Tests/Integration/Trunking/V1/Trunk/CredentialListTest.php18
-rw-r--r--Twilio/Tests/Integration/Trunking/V1/Trunk/IpAccessControlListTest.php18
-rw-r--r--Twilio/Tests/Integration/Trunking/V1/Trunk/OriginationUrlTest.php22
-rw-r--r--Twilio/Tests/Integration/Trunking/V1/Trunk/PhoneNumberTest.php18
-rw-r--r--Twilio/Tests/Integration/Trunking/V1/TrunkTest.php22
5 files changed, 49 insertions, 49 deletions
diff --git a/Twilio/Tests/Integration/Trunking/V1/Trunk/CredentialListTest.php b/Twilio/Tests/Integration/Trunking/V1/Trunk/CredentialListTest.php
index 925c844..67e4eac 100644
--- a/Twilio/Tests/Integration/Trunking/V1/Trunk/CredentialListTest.php
+++ b/Twilio/Tests/Integration/Trunking/V1/Trunk/CredentialListTest.php
@@ -25,10 +25,10 @@ class CredentialListTest 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/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -62,10 +62,10 @@ class CredentialListTest 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/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -93,12 +93,12 @@ class CredentialListTest extends HolodeckTestCase {
'CredentialListSid' => "CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -132,10 +132,10 @@ class CredentialListTest 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/CredentialLists'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -170,7 +170,7 @@ class CredentialListTest extends HolodeckTestCase {
$actual = $this->twilio->trunking->v1->trunks("TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->credentialsLists->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Trunking/V1/Trunk/IpAccessControlListTest.php b/Twilio/Tests/Integration/Trunking/V1/Trunk/IpAccessControlListTest.php
index 8fb62ef..c053790 100644
--- a/Twilio/Tests/Integration/Trunking/V1/Trunk/IpAccessControlListTest.php
+++ b/Twilio/Tests/Integration/Trunking/V1/Trunk/IpAccessControlListTest.php
@@ -25,10 +25,10 @@ class IpAccessControlListTest 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/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -62,10 +62,10 @@ class IpAccessControlListTest 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/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -93,12 +93,12 @@ class IpAccessControlListTest extends HolodeckTestCase {
'IpAccessControlListSid' => "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -132,10 +132,10 @@ class IpAccessControlListTest 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/IpAccessControlLists'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -171,7 +171,7 @@ class IpAccessControlListTest extends HolodeckTestCase {
$actual = $this->twilio->trunking->v1->trunks("TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->ipAccessControlLists->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
diff --git a/Twilio/Tests/Integration/Trunking/V1/Trunk/OriginationUrlTest.php b/Twilio/Tests/Integration/Trunking/V1/Trunk/OriginationUrlTest.php
index c308ad2..881b11c 100644
--- a/Twilio/Tests/Integration/Trunking/V1/Trunk/OriginationUrlTest.php
+++ b/Twilio/Tests/Integration/Trunking/V1/Trunk/OriginationUrlTest.php
@@ -25,10 +25,10 @@ class OriginationUrlTest 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/OriginationUrls/OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -66,10 +66,10 @@ class OriginationUrlTest 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/OriginationUrls/OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -101,12 +101,12 @@ class OriginationUrlTest extends HolodeckTestCase {
'SipUrl' => "https://example.com",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -144,10 +144,10 @@ class OriginationUrlTest 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/OriginationUrls'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -186,7 +186,7 @@ class OriginationUrlTest extends HolodeckTestCase {
$actual = $this->twilio->trunking->v1->trunks("TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->originationUrls->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -223,10 +223,10 @@ class OriginationUrlTest 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/OriginationUrls/OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
diff --git a/Twilio/Tests/Integration/Trunking/V1/Trunk/PhoneNumberTest.php b/Twilio/Tests/Integration/Trunking/V1/Trunk/PhoneNumberTest.php
index 12a3383..de931b0 100644
--- a/Twilio/Tests/Integration/Trunking/V1/Trunk/PhoneNumberTest.php
+++ b/Twilio/Tests/Integration/Trunking/V1/Trunk/PhoneNumberTest.php
@@ -25,10 +25,10 @@ class PhoneNumberTest 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/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -87,10 +87,10 @@ class PhoneNumberTest 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/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -118,12 +118,12 @@ class PhoneNumberTest extends HolodeckTestCase {
'PhoneNumberSid' => "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://trunking.twilio.com/v1/Trunks/TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -182,10 +182,10 @@ class PhoneNumberTest 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/PhoneNumbers'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -245,7 +245,7 @@ class PhoneNumberTest extends HolodeckTestCase {
$actual = $this->twilio->trunking->v1->trunks("TRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->phoneNumbers->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
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() {