From 71589e1871c6e6fd323910ce1df72b6c2879aecc Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 7 Oct 2024 13:02:41 -0400 Subject: [PATCH] Added GetMeTest --- tests/TgBotLib/Methods/GetMeTest.php | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tests/TgBotLib/Methods/GetMeTest.php 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