Longman\TelegramBot\Tests\Unit\ConversationTest::testNewConversationThatWillExistWithCommand PHP Méthode

testNewConversationThatWillExistWithCommand() public méthode

    public function testNewConversationThatWillExistWithCommand()
    {
        $info = TestHelpers::startFakeConversation();
        $conversation = new Conversation($info['user_id'], $info['chat_id'], 'command');
        $this->assertTrue($conversation->exists());
        $this->assertEquals('command', $conversation->getCommand());
    }