<?php
-/** tests for includes/Html.php */
class HtmlTest extends MediaWikiTestCase {
);
}
+ /**
+ * @covers Html::namespaceSelector
+ */
public function testCanFilterOutNamespaces() {
$this->assertEquals(
'<select id="namespace" name="namespace">' . "\n" .
);
}
+ /**
+ * @covers Html::namespaceSelector
+ */
public function testCanDisableANamespaces() {
$this->assertEquals(
'<select id="namespace" name="namespace">' . "\n" .
return $ret;
}
+ /**
+ * @covers Html::input
+ */
public function testWrapperInput() {
$this->assertEquals(
'<input type="radio" value="testval" name="testname"/>',
);
}
+ /**
+ * @covers Html::check
+ */
public function testWrapperCheck() {
$this->assertEquals(
'<input type="checkbox" value="1" name="testname"/>',
);
}
+ /**
+ * @covers Html::radio
+ */
public function testWrapperRadio() {
$this->assertEquals(
'<input type="radio" value="1" name="testname"/>',
);
}
+ /**
+ * @covers Html::label
+ */
public function testWrapperLabel() {
$this->assertEquals(
'<label for="testid">testlabel</label>',