summaryrefslogtreecommitdiff
path: root/tests/app/Http/RequestHandlers/PasswordResetPageTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app/Http/RequestHandlers/PasswordResetPageTest.php')
-rw-r--r--tests/app/Http/RequestHandlers/PasswordResetPageTest.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/app/Http/RequestHandlers/PasswordResetPageTest.php b/tests/app/Http/RequestHandlers/PasswordResetPageTest.php
index 9c290aebb3..6c853730d9 100644
--- a/tests/app/Http/RequestHandlers/PasswordResetPageTest.php
+++ b/tests/app/Http/RequestHandlers/PasswordResetPageTest.php
@@ -41,9 +41,7 @@ class PasswordResetPageTest extends TestCase
$user_service = $this->createMock(UserService::class);
$user_service->expects($this->once())->method('findByToken')->willReturn($user);
- View::share('tree', null);
-
- $request = self::createRequest();
+ $request = self::createRequest()->withAttribute('tree', null);
$handler = new PasswordResetPage($user_service);
$response = $handler->handle($request);