Moved attachment form submit logic to a seperate service.

This commit is contained in:
Jan Böhmer 2019-10-19 17:13:13 +02:00
parent 1f7c122ba2
commit d382021fee
9 changed files with 279 additions and 73 deletions

View file

@ -42,6 +42,10 @@ class AttachmentTest extends TestCase
public function testIsExternal()
{
$attachment = new PartAttachment();
$this->setProtectedProperty($attachment, 'path', '');
$this->assertFalse($attachment->isExternal());
$this->setProtectedProperty($attachment, 'path', '%MEDIA%/foo/bar.txt');
$this->assertFalse($attachment->isExternal());