Commit dcab99bd authored by Armando Lüscher's avatar Armando Lüscher

Drop test for empty bot username, as it’s allowed now.

parent 93ede0cc
...@@ -71,15 +71,6 @@ class TelegramTest extends TestCase ...@@ -71,15 +71,6 @@ class TelegramTest extends TestCase
new Telegram('invalid-api-key-format', null); new Telegram('invalid-api-key-format', null);
} }
/**
* @expectedException \Longman\TelegramBot\Exception\TelegramException
* @expectedExceptionMessage Bot Username not defined!
*/
public function testNewInstanceWithoutBotUsernameParam()
{
new Telegram(self::$dummy_api_key, null);
}
public function testGetApiKey() public function testGetApiKey()
{ {
$this->assertEquals(self::$dummy_api_key, $this->telegram->getApiKey()); $this->assertEquals(self::$dummy_api_key, $this->telegram->getApiKey());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment