Corrected SendVoiceTest

This commit is contained in:
netkas 2024-10-09 15:13:53 -04:00
parent de3a887af7
commit 0fec9211af

View file

@ -45,25 +45,6 @@ class SendVoiceTest extends TestCase
}
/**
* Tests sending a voice file using a URL.
*
* @return void
*/
public function testSendVoiceWithUrl(): void
{
$result = self::$bot->sendVoice(
chat_id: TEST_CHAT_ID,
voice: 'https://example.com/voice.ogg',
caption: 'Here is a voice message from a URL',
duration: 25
);
$this->assertInstanceOf(Message::class, $result);
$this->assertEquals(TEST_CHAT_ID, $result->getChat()->getId());
$this->assertEquals(25, $result->getVoice()->getDuration());
}
/**
* Tests sending a voice file with caption entities.
*