Skip to content

Commit

Permalink
Update BotManTester.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot authored Aug 8, 2018
1 parent 686fba3 commit 3be9a59
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Testing/BotManTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,12 @@ public function receivesEvent($name, $payload = null)
$this->driver->setEventName($name);
$this->driver->setEventPayload($payload);

return $this->receivesRaw(new IncomingMessage('', $this->user_id, $this->channel));
$result = $this->receivesRaw(new IncomingMessage('', $this->user_id, $this->channel));

$this->driver->setEventName(null);
$this->driver->setEventPayload(null);

return $result;
}

/**
Expand Down

0 comments on commit 3be9a59

Please sign in to comment.