expectsRequest( 'get', '/v2/ota_updates' ); $resources = OtaUpdate::all(); $this->assertInstanceOf(\Telnyx\Collection::class, $resources); $this->assertInstanceOf(\Telnyx\OtaUpdate::class, $resources['data'][0]); } public function testIsRetrievable() { $this->expectsRequest( 'get', '/v2/ota_updates/' . urlencode(self::TEST_RESOURCE_ID) ); $resource = OtaUpdate::retrieve(self::TEST_RESOURCE_ID); $this->assertInstanceOf(\Telnyx\OtaUpdate::class, $resource); } }