From a72e0fee707ff0c8d226fef263eba41a49689833 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Wed, 6 Dec 2023 16:57:15 +0000 Subject: [PATCH] Tests: Fixed debug test to work with social class changes --- tests/DebugViewTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/DebugViewTest.php b/tests/DebugViewTest.php index 43de9f175..34de6b802 100644 --- a/tests/DebugViewTest.php +++ b/tests/DebugViewTest.php @@ -2,7 +2,7 @@ namespace Tests; -use BookStack\Access\SocialAuthService; +use BookStack\Access\SocialDriverManager; use Illuminate\Testing\TestResponse; class DebugViewTest extends TestCase @@ -46,8 +46,8 @@ class DebugViewTest extends TestCase protected function getDebugViewForException(\Exception $exception): TestResponse { // Fake an error via social auth service used on login page - $mockService = $this->mock(SocialAuthService::class); - $mockService->shouldReceive('getActiveDrivers')->andThrow($exception); + $mockService = $this->mock(SocialDriverManager::class); + $mockService->shouldReceive('getActive')->andThrow($exception); return $this->get('/login'); }