File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/PhpSpreadsheetTests/Worksheet Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function testApplyFromArray(): void
3131 self ::assertSame ('A6 ' , $ sheet3 ->getSelectedCells ());
3232 $ cell = 'D12 ' ;
3333 $ styleArray = ['font ' => ['name ' => 'Courier New ' ]];
34- $ sheet2 ->getStyle (' D12 ' )->applyFromArray ($ styleArray );
34+ $ sheet2 ->getStyle ($ cell )->applyFromArray ($ styleArray );
3535 self ::assertSame (1 , $ spreadsheet ->getActiveSheetIndex ());
3636 self ::assertSame ('B4 ' , $ sheet1 ->getSelectedCells ());
3737 self ::assertSame ('D12 ' , $ sheet2 ->getSelectedCells ());
@@ -60,7 +60,7 @@ public function testApplyStylesFromArray(): void
6060 self ::assertSame ('A6 ' , $ sheet3 ->getSelectedCells ());
6161 $ cell = 'D12 ' ;
6262 $ styleArray = ['font ' => ['name ' => 'Courier New ' ]];
63- $ sheet2 ->applyStylesFromArray ($ cell , [ ' font ' => [ ' name ' => ' Courier New ' ]] );
63+ $ sheet2 ->applyStylesFromArray ($ cell , $ styleArray );
6464 self ::assertSame (2 , $ spreadsheet ->getActiveSheetIndex (), 'should be unchanged ' );
6565 self ::assertSame ('B4 ' , $ sheet1 ->getSelectedCells (), 'should be unchanged ' );
6666 self ::assertSame ('C9 ' , $ sheet2 ->getSelectedCells (), 'should be unchanged ' );
You can’t perform that action at this time.
0 commit comments