From 5fcdc3edcd604900b0ae32aa08ff3345d61336fc Mon Sep 17 00:00:00 2001 From: Duilio Palacios Date: Mon, 18 Apr 2016 14:16:55 +0100 Subject: [PATCH] Return in the within method to allow method chaining --- .../Foundation/Testing/Concerns/InteractsWithPages.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithPages.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithPages.php index fe49f385cfeb..28db9d42a06b 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithPages.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithPages.php @@ -211,6 +211,8 @@ public function within($element, Closure $callback) $callback(); array_pop($this->subCrawlers); + + return $this; } /**