Add warning if zip lib missing

This commit is contained in:
Laurent Destailleur
2020-01-16 01:11:39 +01:00
parent 4770bdcb79
commit 8f73bce878
5 changed files with 31 additions and 4 deletions

View File

@@ -235,6 +235,7 @@ class ExportTest extends PHPUnit\Framework\TestCase
$model='csv';
// Build export file
print "Process build_file for model = ".$model."\n";
$result=$objexport->build_file($user, $model, $datatoexport, $array_selected, array(), $sql);
$expectedresult=1;
$this->assertEquals($expectedresult, $result,'Error in CSV export');
@@ -242,6 +243,7 @@ class ExportTest extends PHPUnit\Framework\TestCase
$model='tsv';
// Build export file
print "Process build_file for model = ".$model."\n";
$result=$objexport->build_file($user, $model, $datatoexport, $array_selected, array(), $sql);
$expectedresult=1;
$this->assertEquals($expectedresult, $result, 'Error in TSV export');
@@ -249,6 +251,7 @@ class ExportTest extends PHPUnit\Framework\TestCase
$model='excel2007new';
// Build export file
print "Process build_file for model = ".$model."\n";
$result=$objexport->build_file($user, $model, $datatoexport, $array_selected, array(), $sql);
$expectedresult=1;
$this->assertEquals($expectedresult, $result, 'Error in Excel2007new export');