mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-15 08:12:25 +02:00
Set SettingService behind a Facade
This commit is contained in:
@ -50,10 +50,6 @@ class TwoFAccountModelTest extends ModelTestCase
|
||||
->andReturn(true);
|
||||
});
|
||||
|
||||
// \Facades\App\Services\SettingService::shouldReceive('get')
|
||||
// ->with('useEncryption')
|
||||
// ->andReturn(true);
|
||||
|
||||
$twofaccount = TwoFAccount::factory()->make([
|
||||
$attribute => 'string',
|
||||
]);
|
||||
@ -92,10 +88,6 @@ class TwoFAccountModelTest extends ModelTestCase
|
||||
->andReturn(false);
|
||||
});
|
||||
|
||||
// \Facades\App\Services\SettingService::shouldReceive('get')
|
||||
// ->with('useEncryption')
|
||||
// ->andReturn(false);
|
||||
|
||||
$twofaccount = TwoFAccount::factory()->make();
|
||||
|
||||
$this->assertEquals($twofaccount->getAttributes()[$attribute], $twofaccount->$attribute);
|
||||
@ -115,10 +107,6 @@ class TwoFAccountModelTest extends ModelTestCase
|
||||
->andReturn(true);
|
||||
});
|
||||
|
||||
// \Facades\App\Services\SettingService::shouldReceive('get')
|
||||
// ->with('useEncryption')
|
||||
// ->andReturn(true);
|
||||
|
||||
Crypt::shouldReceive('encryptString')
|
||||
->andReturn('indecipherableString');
|
||||
|
||||
|
Reference in New Issue
Block a user