Skip to content

Commit deb95f8

Browse files
authored
setText test for SplitItem
1 parent 767bfeb commit deb95f8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/MenuItem/SplitItemTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,14 @@ public function testGetTextThrowsAnException() : void
375375

376376
(new SplitItem([]))->getText();
377377
}
378+
379+
public function testSetTextThrowsAnException() : void
380+
{
381+
self::expectException(\BadMethodCallException::class);
382+
self::expectExceptionMessage(sprintf('Not supported on: %s', SplitItem::class));
383+
384+
(new SplitItem([]))->setText('test');
385+
}
378386

379387
public function testGetRowsThrowsAnExceptionIfNoItemsWereAdded() : void
380388
{

0 commit comments

Comments
 (0)