mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 12:41:10 -04:00
solve unit tests
This commit is contained in:
@ -16,7 +16,7 @@ test('an exchange rate log belongs to company', function () {
|
||||
|
||||
test('add exchange rate log', function () {
|
||||
$expense = Expense::factory()->create();
|
||||
$response = ExchangeRateLog::addExchangeRateLog($expense, $expense->currency_id);
|
||||
$response = ExchangeRateLog::addExchangeRateLog($expense);
|
||||
|
||||
$this->assertDatabaseHas('exchange_Rate_logs', [
|
||||
'exchange_rate' => $response->exchange_rate,
|
||||
|
||||
Reference in New Issue
Block a user