Show log
This commit is contained in:
parent
e8fbf45807
commit
8728000046
@ -237,21 +237,21 @@ class ExportTest extends PHPUnit\Framework\TestCase
|
|||||||
// Build export file
|
// Build export file
|
||||||
$result=$objexport->build_file($user, $model, $datatoexport, $array_selected, array(), $sql);
|
$result=$objexport->build_file($user, $model, $datatoexport, $array_selected, array(), $sql);
|
||||||
$expectedresult=1;
|
$expectedresult=1;
|
||||||
$this->assertEquals($expectedresult, $result);
|
$this->assertEquals($expectedresult, $result,'Error in CSV export');
|
||||||
|
|
||||||
$model='tsv';
|
$model='tsv';
|
||||||
|
|
||||||
// Build export file
|
// Build export file
|
||||||
$result=$objexport->build_file($user, $model, $datatoexport, $array_selected, array(), $sql);
|
$result=$objexport->build_file($user, $model, $datatoexport, $array_selected, array(), $sql);
|
||||||
$expectedresult=1;
|
$expectedresult=1;
|
||||||
$this->assertEquals($expectedresult, $result);
|
$this->assertEquals($expectedresult, $result, 'Error in TSV export');
|
||||||
|
|
||||||
$model='excel2007new';
|
$model='excel2007new';
|
||||||
|
|
||||||
// Build export file
|
// Build export file
|
||||||
$result=$objexport->build_file($user, $model, $datatoexport, $array_selected, array(), $sql);
|
$result=$objexport->build_file($user, $model, $datatoexport, $array_selected, array(), $sql);
|
||||||
$expectedresult=1;
|
$expectedresult=1;
|
||||||
$this->assertEquals($expectedresult, $result);
|
$this->assertEquals($expectedresult, $result, 'Error in Excel2007new export');
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user