X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/ee24635e06a8c01d751f80caba47c57f76e8989d..refs/heads/vectors:/tests/DebugViewTest.php diff --git a/tests/DebugViewTest.php b/tests/DebugViewTest.php index ec66de10a..34de6b802 100644 --- a/tests/DebugViewTest.php +++ b/tests/DebugViewTest.php @@ -2,7 +2,7 @@ namespace Tests; -use BookStack\Auth\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'); }