You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you ask a question by providing a simple string as a question the assertQuestion fails, but assertReply passes. So it looks like the ask() method produces replies (BotMan\BotMan\Messages\Outgoing\OutgoingMessage) instead of questions (BotMan\BotMan\Messages\Outgoing\Question) if you pass strings to it.
// Conversation 1$this->ask('How are you?', function (Answer$answer) {
// ...
});
// Test$this->bot->assertQuestion('How are you?'); // fails$this->bot->assertReply('How are you?'); // passes
// Conversation 2$this->ask(Question::create('How are you?'), function (Answer$answer) {
// ...
});
// Test$this->bot->assertQuestion('How are you?'); // passes$this->bot->assertReply('How are you?'); // fails
The text was updated successfully, but these errors were encountered:
If you ask a question by providing a simple string as a question the
assertQuestion
fails, butassertReply
passes. So it looks like theask()
method produces replies (BotMan\BotMan\Messages\Outgoing\OutgoingMessage
) instead of questions (BotMan\BotMan\Messages\Outgoing\Question
) if you pass strings to it.The text was updated successfully, but these errors were encountered: