mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Tests: Fixed debug test to work with social class changes
This commit is contained in:
parent
f32cfb4292
commit
a72e0fee70
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Tests;
|
namespace Tests;
|
||||||
|
|
||||||
use BookStack\Access\SocialAuthService;
|
use BookStack\Access\SocialDriverManager;
|
||||||
use Illuminate\Testing\TestResponse;
|
use Illuminate\Testing\TestResponse;
|
||||||
|
|
||||||
class DebugViewTest extends TestCase
|
class DebugViewTest extends TestCase
|
||||||
@ -46,8 +46,8 @@ class DebugViewTest extends TestCase
|
|||||||
protected function getDebugViewForException(\Exception $exception): TestResponse
|
protected function getDebugViewForException(\Exception $exception): TestResponse
|
||||||
{
|
{
|
||||||
// Fake an error via social auth service used on login page
|
// Fake an error via social auth service used on login page
|
||||||
$mockService = $this->mock(SocialAuthService::class);
|
$mockService = $this->mock(SocialDriverManager::class);
|
||||||
$mockService->shouldReceive('getActiveDrivers')->andThrow($exception);
|
$mockService->shouldReceive('getActive')->andThrow($exception);
|
||||||
|
|
||||||
return $this->get('/login');
|
return $this->get('/login');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user