diff --git a/src/Testing/BotManTester.php b/src/Testing/BotManTester.php index 4b50332..7c58418 100644 --- a/src/Testing/BotManTester.php +++ b/src/Testing/BotManTester.php @@ -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; } /**