1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 17:19:56 +02:00

Minor tweaks and extended File zip test.

This commit is contained in:
camer0n
2024-05-10 11:42:52 -07:00
parent bdbda018d2
commit 6fd5c5dc10
2 changed files with 20 additions and 14 deletions

View File

@@ -303,13 +303,19 @@ class e_fileTest extends \Codeception\Test\Unit
$contents = self::readZipFile($destinationPath);
self::assertSame($expected, $contents);
// Test directory path.
$destinationPath = e_TEMP."testZip2.zip";
$data = array();
$data[] = e_TEMP;
$result = $this->fl->zip($data , $destinationPath, ['remove_path'=>e_IMAGE]);
$contents = self::readZipFile($destinationPath);
self::assertNotEmpty($contents);
}
/*
public function testZip()
{
}
public function testSetDefaults()
{