Fix: Limit readers to excel when testing content
This commit is contained in:
parent
b20d05398b
commit
8aefd17b06
|
@ -13,7 +13,7 @@ trait TestsExcelDocuments
|
|||
{
|
||||
$filename = sys_get_temp_dir() . '/' . str()->uuid()->toString();
|
||||
file_put_contents($filename, $content);
|
||||
$spreadsheet = IOFactory::load($filename);
|
||||
$spreadsheet = IOFactory::load($filename, 0, [IOFactory::READER_XLSX]);
|
||||
$writer = new Csv($spreadsheet);
|
||||
$writer->save($filename);
|
||||
$spreadsheet->disconnectWorksheets();
|
||||
|
|
Loading…
Reference in New Issue