dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mock Http in MediaWikiPageNameNormalizerTest and add more test cases
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
HtmlTest.php
diff --git
a/tests/phpunit/includes/HtmlTest.php
b/tests/phpunit/includes/HtmlTest.php
index
a01f2f5
..
4721793
100644
(file)
--- a/
tests/phpunit/includes/HtmlTest.php
+++ b/
tests/phpunit/includes/HtmlTest.php
@@
-46,7
+46,7
@@
class HtmlTest extends MediaWikiTestCase {
$this->assertEquals(
'<img/>',
Html::element( 'img', null, '' ),
$this->assertEquals(
'<img/>',
Html::element( 'img', null, '' ),
- '
No close
tag for short-tag elements'
+ '
Self-closing
tag for short-tag elements'
);
$this->assertEquals(
);
$this->assertEquals(
@@
-60,12
+60,6
@@
class HtmlTest extends MediaWikiTestCase {
Html::element( 'element', [], '' ),
'Close tag for empty element (array, string)'
);
Html::element( 'element', [], '' ),
'Close tag for empty element (array, string)'
);
-
- $this->assertEquals(
- '<img/>',
- Html::element( 'img', null, '' ),
- 'Self-closing tag for short-tag elements'
- );
}
public function dataXmlMimeType() {
}
public function dataXmlMimeType() {
@@
-140,12
+134,6
@@
class HtmlTest extends MediaWikiTestCase {
Html::expandAttributes( [ 'selected' ] ),
'Boolean attributes have no value when value is true (passed as numerical array)'
);
Html::expandAttributes( [ 'selected' ] ),
'Boolean attributes have no value when value is true (passed as numerical array)'
);
-
- $this->assertEquals(
- ' selected=""',
- Html::expandAttributes( [ 'selected' => true ] ),
- 'Boolean attributes have empty string value when value is true'
- );
}
/**
}
/**