summaryrefslogtreecommitdiffstats
path: root/Twilio/Tests/Integration/Api/V2010/Account/KeyTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'Twilio/Tests/Integration/Api/V2010/Account/KeyTest.php')
-rw-r--r--Twilio/Tests/Integration/Api/V2010/Account/KeyTest.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/Twilio/Tests/Integration/Api/V2010/Account/KeyTest.php b/Twilio/Tests/Integration/Api/V2010/Account/KeyTest.php
index 3267b19..46601c0 100644
--- a/Twilio/Tests/Integration/Api/V2010/Account/KeyTest.php
+++ b/Twilio/Tests/Integration/Api/V2010/Account/KeyTest.php
@@ -25,10 +25,10 @@ class KeyTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Keys/SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testFetchResponse() {
@@ -59,10 +59,10 @@ class KeyTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Keys/SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -93,10 +93,10 @@ class KeyTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Keys/SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json'
- )));
+ ));
}
public function testDeleteResponse() {
@@ -120,10 +120,10 @@ class KeyTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Keys.json'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -154,7 +154,7 @@ class KeyTest extends HolodeckTestCase {
$actual = $this->twilio->api->v2010->accounts("ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
->keys->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {