diff --git a/tests/TgBotLib/Methods/GetMeTest.php b/tests/TgBotLib/Methods/GetMeTest.php new file mode 100644 index 0000000..ded80dc --- /dev/null +++ b/tests/TgBotLib/Methods/GetMeTest.php @@ -0,0 +1,38 @@ +getMe(); + + $this->assertInstanceOf(User::class, $result); + $this->assertEquals(7591266486, $result->getId()); + $this->assertEquals('Debug Bot', $result->getFirstName()); + $this->assertNull($result->getLastName()); + $this->assertEquals('PublicDebuggingBot', $result->getUsername()); + $this->assertTrue($result->isBot()); + } +} \ No newline at end of file