mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Refactor tests and code to handle new 2FA methods.
This commit is contained in:
@@ -451,9 +451,6 @@ abstract class TestCase extends BaseTestCase
|
||||
$list = new Preference;
|
||||
$list->data = 50;
|
||||
|
||||
die('the references in this test to 2FA preferences must be refactored.');
|
||||
Preferences::shouldReceive('get')->withArgs(['twoFactorAuthEnabled', false])->andReturn($false);
|
||||
Preferences::shouldReceive('get')->withArgs(['twoFactorAuthSecret'])->andReturnNull();
|
||||
Preferences::shouldReceive('get')->withArgs(['viewRange', Mockery::any()])->andReturn($view);
|
||||
Preferences::shouldReceive('get')->withArgs(['language', 'en_US'])->andReturn($lang);
|
||||
Preferences::shouldReceive('get')->withArgs(['list-length', 10])->andReturn($list);
|
||||
|
Reference in New Issue
Block a user