Code cleanup

This commit is contained in:
James Cole
2019-08-17 10:54:16 +02:00
parent 1974d5f1e3
commit 6d1bfd3956
11 changed files with 31 additions and 20 deletions

View File

@@ -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();
}
/**