mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Improve some test coverage.
This commit is contained in:
@@ -112,6 +112,22 @@ class AttachmentHelperTest extends TestCase
|
||||
Storage::disk('upload')->assertExists(sprintf('at-%d.data', $attachments->first()->id));
|
||||
}
|
||||
|
||||
/**
|
||||
* Test double file upload. Needs to be after testSave.
|
||||
*
|
||||
* @covers \FireflyIII\Helpers\Attachments\AttachmentHelper::__construct
|
||||
* @covers \FireflyIII\Helpers\Attachments\AttachmentHelper::saveAttachmentsForModel
|
||||
*/
|
||||
public function testSaveEmpty()
|
||||
{
|
||||
$journal = TransactionJournal::first();
|
||||
$helper = new AttachmentHelper;
|
||||
|
||||
$res = $helper->saveAttachmentsForModel($journal, null);
|
||||
$this->assertTrue($res);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test double file upload. Needs to be after testSave.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user