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:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user