Skip to content

Commit fcc5cf1

Browse files
committed
Minor Test Improvement
1 parent 2760e5a commit fcc5cf1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/PhpSpreadsheetTests/Reader/Xlsx/Issue4049Test.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
namespace PhpOffice\PhpSpreadsheetTests\Reader\Xlsx;
66

77
use PhpOffice\PhpSpreadsheet\Reader\Xlsx;
8-
use PHPUnit\Framework\TestCase;
8+
use PhpOffice\PhpSpreadsheetTests\Functional\AbstractFunctional;
99

10-
class Issue4049Test extends TestCase
10+
class Issue4049Test extends AbstractFunctional
1111
{
12-
public static function testPr1869(): void
12+
public function testColorScale(): void
1313
{
1414
$xlsxFile = 'tests/data/Reader/XLSX/issue.4049.xlsx';
1515
$reader = new Xlsx();
16-
$spreadsheet = $reader->load($xlsxFile);
16+
$oldSpreadsheet = $reader->load($xlsxFile);
17+
$spreadsheet = $this->writeAndReload($oldSpreadsheet, 'Xlsx');
18+
$oldSpreadsheet->disconnectWorksheets();
1719
$sheet = $spreadsheet->getActiveSheet();
1820
$conditionals = $sheet->getConditionalStylesCollection();
1921
self::assertCount(1, $conditionals);

0 commit comments

Comments
 (0)