mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Fix display of foreign currencies in charts.
This commit is contained in:
@@ -132,7 +132,7 @@ class AccountControllerTest extends TestCase
|
||||
$journalRepos = $this->mock(JournalRepositoryInterface::class);
|
||||
$repository->shouldReceive('getAccountsByType')->andReturn(new Collection([$account]));
|
||||
$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);
|
||||
Steam::shouldReceive('balancesById')->andReturn([$account->id => '100']);
|
||||
Steam::shouldReceive('balancesByAccounts')->andReturn([$account->id => '100']);
|
||||
Steam::shouldReceive('getLastActivities')->andReturn([]);
|
||||
|
||||
$this->be($this->user());
|
||||
|
@@ -68,7 +68,7 @@ class AccountControllerTest extends TestCase
|
||||
|
||||
$accountRepos->shouldReceive('getAccountsByType')->withArgs([[AccountType::EXPENSE, AccountType::BENEFICIARY]])->andReturn(new Collection([$account]));
|
||||
$generator->shouldReceive('singleSet')->andReturn([]);
|
||||
Steam::shouldReceive('balancesById')->twice()->andReturn([]);
|
||||
Steam::shouldReceive('balancesByAccounts')->twice()->andReturn([]);
|
||||
|
||||
|
||||
$this->be($this->user());
|
||||
@@ -333,7 +333,7 @@ class AccountControllerTest extends TestCase
|
||||
|
||||
$accountRepos->shouldReceive('getAccountsByType')->withArgs([[AccountType::REVENUE]])->andReturn(new Collection([$account]));
|
||||
$generator->shouldReceive('singleSet')->andReturn([]);
|
||||
Steam::shouldReceive('balancesById')->twice()->andReturn([]);
|
||||
Steam::shouldReceive('balancesByAccounts')->twice()->andReturn([]);
|
||||
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
|
@@ -33,9 +33,8 @@ class ReportControllerTest extends TestCase
|
||||
public function testNetWorth()
|
||||
{
|
||||
$generator = $this->mock(GeneratorInterface::class);
|
||||
$tasker = $this->mock(AccountTaskerInterface::class);
|
||||
|
||||
Steam::shouldReceive('balancesById')->andReturn(['5', '10']);
|
||||
Steam::shouldReceive('balancesByAccounts')->andReturn(['5', '10']);
|
||||
$generator->shouldReceive('singleSet')->andReturn([]);
|
||||
|
||||
$this->be($this->user());
|
||||
|
Reference in New Issue
Block a user