Skip to content

Commit 8b3928c

Browse files
committed
try looking up deactivated number
1 parent 686c14e commit 8b3928c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/ApiTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ public function testAsyncTnLookup() {
224224

225225
public function testSyncTnLookup() {
226226
$body = new BandwidthLib\PhoneNumberLookup\Models\CreateLookupRequest();
227-
$body->phoneNumbers = [getenv("USER_NUMBER")];
227+
// $body->phoneNumbers = [getenv("USER_NUMBER")];
228+
$body->phoneNumbers = ["+18174031662"];
228229
$response = $this->bandwidthClient->getPhoneNumberLookup()->getClient()->createSyncLookupRequest(getenv("BW_ACCOUNT_ID"), $body);
229230
$this->assertInstanceOf(BandwidthLib\PhoneNumberLookup\Models\LookupResponse::class, $response->getResult());
230231
$this->assertIsArray($response->getResult()->links);
@@ -240,6 +241,7 @@ public function testSyncTnLookup() {
240241
$this->assertIsString($response->getResult()->data->results[0]->messagingProvider);
241242
$this->assertIsString($response->getResult()->data->results[0]->voiceProvider);
242243
$this->assertIsString($response->getResult()->data->results[0]->countryCodeA3);
244+
$this->assertInstanceOf(\DateTime::class, $response->getResult()->data->results[0]->latestMessageDeliveryStatusDate);
243245
$this->assertIsArray($response->getResult()->errors);
244246
}
245247
}

0 commit comments

Comments
 (0)