summaryrefslogtreecommitdiffstats
path: root/Twilio/Tests/Integration/Taskrouter/V1/WorkspaceTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'Twilio/Tests/Integration/Taskrouter/V1/WorkspaceTest.php')
-rw-r--r--Twilio/Tests/Integration/Taskrouter/V1/WorkspaceTest.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/Twilio/Tests/Integration/Taskrouter/V1/WorkspaceTest.php b/Twilio/Tests/Integration/Taskrouter/V1/WorkspaceTest.php
index 049314e..27079e6 100644
--- a/Twilio/Tests/Integration/Taskrouter/V1/WorkspaceTest.php
+++ b/Twilio/Tests/Integration/Taskrouter/V1/WorkspaceTest.php
@@ -24,10 +24,10 @@ class WorkspaceTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testFetchResponse() {
@@ -71,10 +71,10 @@ class WorkspaceTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testUpdateResponse() {
@@ -118,10 +118,10 @@ class WorkspaceTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'get',
'https://taskrouter.twilio.com/v1/Workspaces'
- )));
+ ));
}
public function testReadFullResponse() {
@@ -167,7 +167,7 @@ class WorkspaceTest extends HolodeckTestCase {
$actual = $this->twilio->taskrouter->v1->workspaces->read();
- $this->assertTrue(count($actual) > 0);
+ $this->assertGreaterThan(0, count($actual));
}
public function testReadEmptyResponse() {
@@ -206,12 +206,12 @@ class WorkspaceTest extends HolodeckTestCase {
'FriendlyName' => "friendlyName",
);
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'post',
'https://taskrouter.twilio.com/v1/Workspaces',
null,
$values
- )));
+ ));
}
public function testCreateResponse() {
@@ -255,10 +255,10 @@ class WorkspaceTest extends HolodeckTestCase {
} catch (DeserializeException $e) {}
catch (TwilioException $e) {}
- $this->assertTrue($this->holodeck->hasRequest(new Request(
+ $this->assertRequest(new Request(
'delete',
'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
- )));
+ ));
}
public function testDeleteResponse() {