mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-21 10:41:22 +00:00
Code cleanup
This commit is contained in:
@@ -78,8 +78,8 @@ class AccountDestroyServiceTest extends TestCase
|
||||
'virtual_balance' => '0', 'iban' => null, 'active' => true]
|
||||
);
|
||||
|
||||
$recurrence = $this->getRandomRecurrence();
|
||||
$recurrenceTransaction = RecurrenceTransaction::create(
|
||||
$recurrence = $this->getRandomRecurrence();
|
||||
$transaction = RecurrenceTransaction::create(
|
||||
[
|
||||
'recurrence_id' => $recurrence->id,
|
||||
'transaction_currency_id' => $this->getEuro()->id,
|
||||
@@ -91,7 +91,7 @@ class AccountDestroyServiceTest extends TestCase
|
||||
);
|
||||
|
||||
$recService->shouldReceive('destroyById')->once()
|
||||
->withAnyArgs([$recurrenceTransaction->id]);
|
||||
->withAnyArgs([$transaction->id]);
|
||||
|
||||
/** @var AccountDestroyService $service */
|
||||
$service = app(AccountDestroyService::class);
|
||||
@@ -99,7 +99,7 @@ class AccountDestroyServiceTest extends TestCase
|
||||
|
||||
$this->assertDatabaseMissing('accounts', ['id' => $account->id, 'deleted_at' => null]);
|
||||
|
||||
$recurrenceTransaction->forceDelete();
|
||||
$transaction->forceDelete();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user