Improve test coverage.

This commit is contained in:
James Cole
2019-06-29 08:14:28 +02:00
parent cf904eb677
commit 003d07504f
33 changed files with 447 additions and 269 deletions

View File

@@ -69,7 +69,11 @@ class MigrateJournalNotesTest extends TestCase
FireflyConfig::shouldReceive('set')->withArgs(['4780_migrate_notes', true]);
$journal = $this->getRandomWithdrawal();
$meta = TransactionJournalMeta::create(
// delete any notes the journal may have already:
$journal->notes()->forceDelete();
$meta = TransactionJournalMeta::create(
[
'transaction_journal_id' => $journal->id,
'name' => 'notes',