Set SettingService behind a Facade

This commit is contained in:
Bubka
2022-07-30 17:51:02 +02:00
parent be632bb489
commit f7ac1e96c3
21 changed files with 101 additions and 208 deletions

View File

@ -142,9 +142,8 @@ class GroupControllerTest extends TestCase
{
$group = Group::factory()->make();
$this->mock(SettingService::class, function (MockInterface $mock) {
$mock->shouldReceive('get')
->with('useEncryption')
$settingService = $this->mock(SettingService::class, function (MockInterface $settingService) {
$settingService->shouldReceive('get')
->andReturn(false);
});