Add testRemoveComment
This commit is contained in:
parent
13437384af
commit
56ddbc4dd5
|
|
@ -83,4 +83,12 @@ class CommentTest extends TestCase
|
||||||
$comment->setText($test);
|
$comment->setText($test);
|
||||||
self::assertEquals('This is a test comment', (string) $comment);
|
self::assertEquals('This is a test comment', (string) $comment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testRemoveComment(): void {
|
||||||
|
$spreadsheet = new Spreadsheet();
|
||||||
|
$sheet = $spreadsheet->getActiveSheet();
|
||||||
|
$sheet->getComment('A2')->getText()->createText('Comment to delete');
|
||||||
|
$sheet->removeComment('A2');
|
||||||
|
self::assertEmpty($sheet->getComments());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue