Improve test coverage.

This commit is contained in:
James Cole
2019-07-31 16:53:09 +02:00
parent 5524941c90
commit 9b574ce7ad
155 changed files with 1890 additions and 2263 deletions

View File

@@ -116,7 +116,7 @@ class AttachmentHelperTest extends TestCase
'attachable_id' => $journal->id,
'user_id' => $this->user()->id,
'attachable_type' => TransactionJournal::class,
'md5' => md5('Hello' . random_int(1, 10000)),
'md5' => md5('Hello' . $this->randomInt()),
'filename' => 'file.txt',
'title' => 'Some title',
'description' => 'Some descr',
@@ -151,7 +151,7 @@ class AttachmentHelperTest extends TestCase
'attachable_id' => $journal->id,
'user_id' => $this->user()->id,
'attachable_type' => TransactionJournal::class,
'md5' => md5('Hello' . random_int(1, 10000)),
'md5' => md5('Hello' . $this->randomInt()),
'filename' => 'file.txt',
'title' => 'Some title',
'description' => 'Some descr',