Skip to content

Commit 09b57c8

Browse files
Update ApiTest.php
1 parent 90c321e commit 09b57c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/ApiTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,15 @@ public function testCreateCallAndGetCallState() {
8585
$response = $this->bandwidthClient->getVoice()->getClient()->createCall(getenv("BW_ACCOUNT_ID"), $body);
8686
$callId = $response->getResult()->callId;
8787
$this->assertTrue(strlen($callId) > 0);
88-
88+
$this->assertTrue(is_a($response->getResult()->enqueuedTime, 'DateTime'));
89+
8990
sleep(1);
9091

9192
//get phone call information
9293
$response = $this->bandwidthClient->getVoice()->getClient()->getCall(getenv("BW_ACCOUNT_ID"), $callId);
9394
$this->assertTrue(strlen($response->getResult()->state) > 0);
95+
$this->assertTrue(is_a($response->getResult()->enqueuedTime, 'DateTime'));
96+
9497
}
9598

9699
public function testCreateCallWithAmdAndGetCallState() {
@@ -121,7 +124,6 @@ public function testCreateCallWithAmdAndGetCallState() {
121124
//get phone call information
122125
$response = $this->bandwidthClient->getVoice()->getClient()->getCall(getenv("BW_ACCOUNT_ID"), $callId);
123126
$this->assertTrue(strlen($response->getResult()->state) > 0);
124-
$this->assertTrue(is_a($response->getResult()->enqueuedTime, 'DateTime'));
125127
}
126128

127129
public function testCreateCallWithPriority() {

0 commit comments

Comments
 (0)