File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -197,9 +197,12 @@ public function testTnLookup() {
197197 $ body = new BandwidthLib \PhoneNumberLookup \Models \CreateAsyncBulkRequest ();
198198 $ body ->phoneNumbers = [getenv ("USER_NUMBER " )];
199199 $ createResponse = $ this ->bandwidthClient ->getPhoneNumberLookup ()->getClient ()->createAsyncBulkLookupRequest (getenv ("BW_ACCOUNT_ID " ), $ body );
200- $ this ->assertInstanceOf (BandwidthLib \PhoneNumberLookup \Models \CreateAsyncBulkResponse::class, $ createResponse ->getResult ()->data );
200+ $ this ->assertInstanceOf (BandwidthLib \PhoneNumberLookup \Models \CreateAsyncBulkResponse::class, $ createResponse ->getResult ());
201+ $ this ->assertIsArray ($ createResponse ->getResult ()->links );
202+ $ this ->assertInstanceOf (BandwidthLib \PhoneNumberLookup \Models \CreateAsyncBulkResponseData::class, $ createResponse ->getResult ()->data );
201203 $ this ->assertTrue (strlen ($ createResponse ->getResult ()->data ->requestId ) > 0 );
202204 $ this ->assertTrue (strlen ($ createResponse ->getResult ()->data ->status ) > 0 );
205+ $ this ->assertIsArray ($ createResponse ->getResult ()->errors );
203206
204207 // $requestId = $createResponse->getResult()->requestId;
205208 // $getResponse = $this->bandwidthClient->getPhoneNumberLookup()->getClient()->getLookupRequestStatus(getenv("BW_ACCOUNT_ID"), $requestId);
You can’t perform that action at this time.
0 commit comments