@@ -141,19 +141,19 @@ public function testValidateAndSetWebhookSuccess()
141141 'telegram ' ,
142142 $ this ->getMockBuilder (Telegram::class)
143143 ->disableOriginalConstructor ()
144- ->setMethods (['setWebHook ' , 'unsetWebHook ' , 'getDescription ' ])
144+ ->setMethods (['setWebhook ' , 'deleteWebhook ' , 'getDescription ' ])
145145 ->getMock ()
146146 );
147147
148148 $ telegram = $ botManager ->getTelegram ();
149149
150150 /** @var \PHPUnit_Framework_MockObject_MockObject $telegram */
151151 $ telegram ->expects (static ::any ())
152- ->method ('setWebHook ' )
152+ ->method ('setWebhook ' )
153153 ->with ('https://web/hook.php?a=handle&s=secret_12345 ' )
154154 ->will (static ::returnSelf ());
155155 $ telegram ->expects (static ::any ())
156- ->method ('unsetWebHook ' )
156+ ->method ('deleteWebhook ' )
157157 ->will (static ::returnSelf ());
158158 $ telegram ->expects (static ::any ())
159159 ->method ('getDescription ' )
@@ -229,7 +229,7 @@ public function testValidateAndSetWebhookSuccessLiveBot()
229229 /**
230230 * @group live
231231 */
232- public function testUnsetWebhookViaRunLiveBot ()
232+ public function testDeleteWebhookViaRunLiveBot ()
233233 {
234234 $ _GET = ['a ' => 'unset ' ];
235235 $ botManager = new BotManager (array_merge (self ::$ live_params , [
@@ -386,7 +386,7 @@ public function testGetUpdatesLiveBot()
386386 public function testGetUpdatesLoopLiveBot ()
387387 {
388388 // Webhook must NOT be set for this to work!
389- $ this ->testUnsetWebhookViaRunLiveBot ();
389+ $ this ->testDeleteWebhookViaRunLiveBot ();
390390
391391 // Looping for 5 seconds should be enough to get a result.
392392 $ _GET = ['l ' => 5 ];
0 commit comments