@@ -37,8 +37,8 @@ public function __construct() {
3737 "GET:imprese.altravia.com/gruppoiva " ,
3838 "GET:comuni.openapi.it/cap " ,
3939 "GET:comuni.openapi.it/istat " ,
40- "GET:comuni.openapi.it/regioni " ,
4140 "GET:comuni.openapi.it/province " ,
41+ "GET:comuni.openapi.it/regioni " ,
4242 "GET:comuni.openapi.it/catastale " ,
4343 "GET:ws.ufficiopostale.com/tracking " ,
4444 "POST:geocoding.realgest.it/geocode " ,
@@ -95,12 +95,12 @@ public function testClientInstance() {
9595 // $this->assertIsObject($Pec);
9696 // }
9797
98- public function testMarche () {
99- $ marca = $ this ->openapi ->marcheTemporali ->availability ('infocert ' , 1 );
100- $ comprata = $ this ->openapi ->marcheTemporali ->purcahse ('infocert ' , 1 );
98+ // public function testMarche() {
99+ // $marca = $this->openapi->marcheTemporali->availability('infocert', 1);
100+ // $comprata = $this->openapi->marcheTemporali->purcahse('infocert', 1);
101101
102- $ this ->assertIsInt ($ marca ->availability );
103- }
102+ // $this->assertIsInt($marca->availability);
103+ // }
104104
105105 // public function testGeocoding() {
106106 // // Prendi informazioni sul cap 00132
@@ -135,11 +135,20 @@ public function testMarche() {
135135 // $raccomandata->creaRaccomandataByData($data);
136136 // }
137137
138- // public function testSms() {
139- // $singleSms = $this->openapi->SMS->sendOne('prova', '3939989741', 'messaggio di prova', null, 1, null, true);
140- // $this->assertIsArray($singleSms);
141- // var_dump($singleSms);
142- // }
138+ public function testSms () {
139+ $ recipients = [
140+ [
141+ 'number ' => '+39-3939989741 ' ,
142+ 'fields ' => ['nome ' => 'NomeDestinatario ' ]
143+ ]
144+ ];
145+ $ singleSms = $ this ->openapi ->SMS ->sendOne ('test ' , '+39-3939989741 ' , 'prova ' , null , 1 , null , true );
146+
147+ $ message = $ this ->openapi ->SMS ->getMessage ($ singleSms ->data ->id );
148+
149+ $ this ->assertEquals (true , $ singleSms ->success );
150+ $ this ->assertEquals (true , $ message ['success ' ]);
151+ }
143152
144153 // public function testVisura() {
145154 // // $visura = new VisRequest('eccbc87e4b5ce2fe28308fd9f2a7baf3');
0 commit comments