forked from mirror/Part-DB.Part-DB-server
Fixed bug that wrong function was called.
This commit is contained in:
parent
d9c83d8bb2
commit
3021d0d67a
2 changed files with 5 additions and 5 deletions
|
@ -285,14 +285,14 @@ class AttachmentTest extends TestCase
|
|||
public function testIsURL(): void
|
||||
{
|
||||
$url = '%MEDIA%/test.txt';
|
||||
$this->assertFalse(Attachment::isURL($url));
|
||||
$this->assertFalse(Attachment::isValidURL($url));
|
||||
|
||||
$url = 'https://google.de';
|
||||
$this->assertFalse(Attachment::isURL($url));
|
||||
$this->assertFalse(Attachment::isValidURL($url));
|
||||
|
||||
$url = 'ftp://google.de';
|
||||
$this->assertTrue(Attachment::isURL($url, false, false));
|
||||
$this->assertFalse(Attachment::isURL($url, false, true));
|
||||
$this->assertTrue(Attachment::isValidURL($url, false, false));
|
||||
$this->assertFalse(Attachment::isValidURL($url, false, true));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue