We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1343738 commit 56ddbc4Copy full SHA for 56ddbc4
tests/PhpSpreadsheetTests/CommentTest.php
@@ -83,4 +83,12 @@ public function testSetText(): void
83
$comment->setText($test);
84
self::assertEquals('This is a test comment', (string) $comment);
85
}
86
+
87
+ public function testRemoveComment(): void {
88
+ $spreadsheet = new Spreadsheet();
89
+ $sheet = $spreadsheet->getActiveSheet();
90
+ $sheet->getComment('A2')->getText()->createText('Comment to delete');
91
+ $sheet->removeComment('A2');
92
+ self::assertEmpty($sheet->getComments());
93
+ }
94
0 commit comments