mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-03 12:47:17 -06:00
Fixed preferences tests.
This commit is contained in:
parent
49d7dea086
commit
f159beee0d
@ -81,9 +81,16 @@ class PreferencesControllerTest extends TestCase
|
||||
'language' => 'en',
|
||||
];
|
||||
|
||||
// language preference:
|
||||
$language = FactoryMuffin::create('FireflyIII\Models\Preference');
|
||||
$language->data = 'en';
|
||||
$language->save();
|
||||
Preferences::shouldReceive('get')->withAnyArgs()->andReturn($language);
|
||||
|
||||
Preferences::shouldReceive('set')->once()->withArgs(['frontPageAccounts', [1, 2, 3]]);
|
||||
Preferences::shouldReceive('set')->once()->withArgs(['viewRange', '1M']);
|
||||
Preferences::shouldReceive('set')->once()->withArgs(['budgetMaximum', 0]);
|
||||
Preferences::shouldReceive('set')->once()->withArgs(['language', 'en']);
|
||||
|
||||
// language preference:
|
||||
$language = FactoryMuffin::create('FireflyIII\Models\Preference');
|
||||
|
Loading…
Reference in New Issue
Block a user