mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Fix budget limit test, and a bug in the other currencies corrector.
This commit is contained in:
@@ -205,7 +205,7 @@ class OtherCurrenciesCorrections extends Command
|
|||||||
if (null === $transaction->transaction_currency_id) {
|
if (null === $transaction->transaction_currency_id) {
|
||||||
$transaction->transaction_currency_id = $currency->id;
|
$transaction->transaction_currency_id = $currency->id;
|
||||||
$transaction->save();
|
$transaction->save();
|
||||||
$this->count++;
|
//$this->count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// when mismatch in transaction:
|
// when mismatch in transaction:
|
||||||
@@ -214,7 +214,7 @@ class OtherCurrenciesCorrections extends Command
|
|||||||
$transaction->foreign_amount = $transaction->amount;
|
$transaction->foreign_amount = $transaction->amount;
|
||||||
$transaction->transaction_currency_id = $currency->id;
|
$transaction->transaction_currency_id = $currency->id;
|
||||||
$transaction->save();
|
$transaction->save();
|
||||||
$this->count++;
|
//$this->count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@@ -47,7 +47,10 @@ class BudgetLimitCurrencyTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testHandle(): void
|
public function testHandle(): void
|
||||||
{
|
{
|
||||||
|
BudgetLimit::whereNull('transaction_currency_id')->forceDelete();
|
||||||
|
|
||||||
$this->artisan('firefly-iii:bl-currency')
|
$this->artisan('firefly-iii:bl-currency')
|
||||||
|
->expectsOutput('All budget limits are correct.')
|
||||||
->assertExitCode(0);
|
->assertExitCode(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user