@@ -266,11 +266,6 @@ public function testCreateListGetDeleteEndpoint() {
266266 $ createResp = $ brtcClient ->createEndpoint ($ accountId , $ createReq )->getResult ();
267267 $ this ->assertInstanceOf (BandwidthLib \BRTC \Models \CreateEndpointResponse::class, $ createResp );
268268 $ this ->assertIsArray ($ createResp ->links );
269- $ this ->assertNotEmpty ($ createResp ->links );
270- $ this ->assertInstanceOf (BandwidthLib \BRTC \Models \Link::class, $ createResp ->links [0 ]);
271- $ this ->assertIsString ($ createResp ->links [0 ]->rel );
272- $ this ->assertIsString ($ createResp ->links [0 ]->href );
273- $ this ->assertIsString ($ createResp ->links [0 ]->method );
274269 $ this ->assertNotNull ($ createResp ->data );
275270 $ this ->assertInstanceOf (BandwidthLib \BRTC \Models \CreateEndpointResponseData::class, $ createResp ->data );
276271 $ this ->assertNotNull ($ createResp ->data ->endpointId );
@@ -291,11 +286,6 @@ public function testCreateListGetDeleteEndpoint() {
291286 $ listResp = $ brtcClient ->listEndpoints ($ accountId )->getResult ();
292287 $ this ->assertInstanceOf (BandwidthLib \BRTC \Models \ListEndpointsResponse::class, $ listResp );
293288 $ this ->assertIsArray ($ listResp ->links );
294- $ this ->assertNotEmpty ($ listResp ->links );
295- $ this ->assertInstanceOf (BandwidthLib \BRTC \Models \Link::class, $ listResp ->links [0 ]);
296- $ this ->assertIsString ($ listResp ->links [0 ]->rel );
297- $ this ->assertIsString ($ listResp ->links [0 ]->href );
298- $ this ->assertIsString ($ listResp ->links [0 ]->method );
299289 $ this ->assertNotNull ($ listResp ->page );
300290 $ this ->assertInstanceOf (BandwidthLib \BRTC \Models \Page::class, $ listResp ->page );
301291 $ this ->assertIsArray ($ listResp ->data );
@@ -315,11 +305,6 @@ public function testCreateListGetDeleteEndpoint() {
315305 $ getResp = $ brtcClient ->getEndpoint ($ accountId , $ endpointId )->getResult ();
316306 $ this ->assertInstanceOf (BandwidthLib \BRTC \Models \EndpointResponse::class, $ getResp );
317307 $ this ->assertIsArray ($ getResp ->links );
318- $ this ->assertNotEmpty ($ getResp ->links );
319- $ this ->assertInstanceOf (BandwidthLib \BRTC \Models \Link::class, $ getResp ->links [0 ]);
320- $ this ->assertIsString ($ getResp ->links [0 ]->rel );
321- $ this ->assertIsString ($ getResp ->links [0 ]->href );
322- $ this ->assertIsString ($ getResp ->links [0 ]->method );
323308 $ this ->assertNotNull ($ getResp ->data );
324309 $ this ->assertInstanceOf (BandwidthLib \BRTC \Models \Endpoint::class, $ getResp ->data );
325310 $ this ->assertEquals ($ endpointId , $ getResp ->data ->endpointId );
0 commit comments