Update the method testRemoveComment
Adding test to check if comment exists before delete it
This commit is contained in:
parent
861b955b3b
commit
7f62fba7ef
|
|
@ -89,6 +89,7 @@ class CommentTest extends TestCase
|
|||
$spreadsheet = new Spreadsheet();
|
||||
$sheet = $spreadsheet->getActiveSheet();
|
||||
$sheet->getComment('A2')->getText()->createText('Comment to delete');
|
||||
self::assertArrayHasKey('A2',$sheet->getComments());
|
||||
$sheet->removeComment('A2');
|
||||
self::assertEmpty($sheet->getComments());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue