Skip to content

Commit 3be9a59

Browse files
authored
Update BotManTester.php
1 parent 686fba3 commit 3be9a59

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Testing/BotManTester.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,12 @@ public function receivesEvent($name, $payload = null)
229229
$this->driver->setEventName($name);
230230
$this->driver->setEventPayload($payload);
231231

232-
return $this->receivesRaw(new IncomingMessage('', $this->user_id, $this->channel));
232+
$result = $this->receivesRaw(new IncomingMessage('', $this->user_id, $this->channel));
233+
234+
$this->driver->setEventName(null);
235+
$this->driver->setEventPayload(null);
236+
237+
return $result;
233238
}
234239

235240
/**

0 commit comments

Comments
 (0)