From 8e17cca5aac03b6907c3f351c6c786df6b859ab1 Mon Sep 17 00:00:00 2001 From: Naouak Date: Thu, 1 Feb 2018 15:35:59 +0100 Subject: [PATCH] Fix missing functions in \Illuminate\Support\Testing\Fakes\BusFake (#22986) --- .../Support/Testing/Fakes/BusFake.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/Illuminate/Support/Testing/Fakes/BusFake.php b/src/Illuminate/Support/Testing/Fakes/BusFake.php index ae1209a3c14d..b95f66abaffd 100644 --- a/src/Illuminate/Support/Testing/Fakes/BusFake.php +++ b/src/Illuminate/Support/Testing/Fakes/BusFake.php @@ -129,4 +129,37 @@ public function pipeThrough(array $pipes) { // } + + /** + * Determine if the given command has a handler. + * + * @param mixed $command + * @return bool + */ + public function hasCommandHandler($command) + { + return false; + } + + /** + * Retrieve the handler for a command. + * + * @param mixed $command + * @return bool|mixed + */ + public function getCommandHandler($command) + { + return false; + } + + /** + * Map a command to a handler. + * + * @param array $map + * @return $this + */ + public function map(array $map) + { + return $this; + } }