Merge "rdbms: avoid LoadBalancer::getConnection waste when using $groups"
[lhc/web/wiklou.git] / tests / phpunit / includes / htmlform / HTMLFormTest.php
index e20cf94..d7dc411 100644 (file)
@@ -3,9 +3,8 @@
 /**
  * @covers HTMLForm
  *
- * @license GNU GPL v2+
+ * @license GPL-2.0-or-later
  * @author Gergő Tisza
- * @author Thiemo Mättig
  */
 class HTMLFormTest extends MediaWikiTestCase {
 
@@ -54,4 +53,11 @@ class HTMLFormTest extends MediaWikiTestCase {
                $this->assertContains( ' autocomplete="off"', $form->wrapForm( '' ) );
        }
 
+       public function testGetPreText() {
+               $preText = 'TEST';
+               $form = $this->newInstance();
+               $form->setPreText( $preText );
+               $this->assertSame( $preText, $form->getPreText() );
+       }
+
 }