mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Test if the filename is not empty
This commit is contained in:
parent
a1aa67476e
commit
8950a0fd99
@ -68,8 +68,8 @@ class SaveToVfsTest extends \EGroupware\Api\AppTest
|
||||
$this->assertNotContains('\x0b', $cleaned);
|
||||
$this->assertNotContains('😂', $cleaned);
|
||||
|
||||
// Length should stay the same
|
||||
$this->assertEquals(strlen($filename), strlen($cleaned), 'Length changed');
|
||||
// Check if the filename is not empty
|
||||
$this->assertGreaterThan(0, strlen($filename), 'File name is empty');
|
||||
|
||||
if(!$replacements)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user