From 3be9a597de96a4fbaaaa5a30a48ba049b22ee048 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Wed, 8 Aug 2018 21:23:58 +0200 Subject: [PATCH] Update BotManTester.php --- src/Testing/BotManTester.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } /**