mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Applied latest styleci changes
This commit is contained in:
@@ -180,7 +180,7 @@ class MfaConfigurationTest extends TestCase
|
||||
|
||||
$resp = $this->get('/mfa/totp/generate');
|
||||
$resp->assertSeeText('Mobile App Setup');
|
||||
$resp->assertDontSee("otpauth://totp/BookStack:guest%40example.com");
|
||||
$resp->assertSee("otpauth://totp/BookStack:admin%40admin.com");
|
||||
$resp->assertDontSee('otpauth://totp/BookStack:guest%40example.com');
|
||||
$resp->assertSee('otpauth://totp/BookStack:admin%40admin.com');
|
||||
}
|
||||
}
|
||||
|
@@ -42,13 +42,12 @@ class DebugViewTest extends TestCase
|
||||
$resp->assertSeeText('An unknown error occurred');
|
||||
}
|
||||
|
||||
|
||||
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);
|
||||
|
||||
return $this->get('/login');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user