mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 02:14:31 +02:00
Moved attachment form submit logic to a seperate service.
This commit is contained in:
parent
1f7c122ba2
commit
d382021fee
9 changed files with 279 additions and 73 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue