startFakeConversation() 공개 정적인 메소드

Start a fake conversation for the passed command and return the randomly generated ids.
public static startFakeConversation ( ) : array
리턴 array
 public function testUpdateConversationNotes()
 {
     $info = TestHelpers::startFakeConversation();
     $conversation = new Conversation($info['user_id'], $info['chat_id'], 'command');
     $conversation->notes = 'newnote';
     $conversation->update();
     $conversation2 = new Conversation($info['user_id'], $info['chat_id'], 'command');
     $this->assertSame('newnote', $conversation2->notes);
     $conversation3 = new Conversation($info['user_id'], $info['chat_id']);
     $this->assertSame('newnote', $conversation3->notes);
 }