diff options
Diffstat (limited to 'tests/phpunit/includes/htmlform/HTMLFormTest.php')
-rw-r--r-- | tests/phpunit/includes/htmlform/HTMLFormTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/phpunit/includes/htmlform/HTMLFormTest.php b/tests/phpunit/includes/htmlform/HTMLFormTest.php index efb753e842e0..99a24c737605 100644 --- a/tests/phpunit/includes/htmlform/HTMLFormTest.php +++ b/tests/phpunit/includes/htmlform/HTMLFormTest.php @@ -62,6 +62,13 @@ class HTMLFormTest extends MediaWikiIntegrationTestCase { $this->assertSame( $preText, $form->getPreText() ); } + public function testGetPreHtml() { + $preHtml = 'TEST'; + $form = $this->newInstance(); + $form->setPreHtml( $preHtml ); + $this->assertSame( $preHtml, $form->getPreHtml() ); + } + public function testGetErrorsOrWarningsWithRawParams() { $form = $this->newInstance(); $msg = new RawMessage( 'message with $1' ); |