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