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
Merge "Accessibility: Make the collapsible sidebar screen reader friendly"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
EditPageTest.php
diff --git
a/tests/phpunit/includes/EditPageTest.php
b/tests/phpunit/includes/EditPageTest.php
index
76ef782
..
7d2b04f
100644
(file)
--- a/
tests/phpunit/includes/EditPageTest.php
+++ b/
tests/phpunit/includes/EditPageTest.php
@@
-13,8
+13,9
@@
class EditPageTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideExtractSectionTitle
/**
* @dataProvider provideExtractSectionTitle
+ * @covers EditPage::extractSectionTitle
*/
*/
- function testExtractSectionTitle( $section, $title ) {
+
public
function testExtractSectionTitle( $section, $title ) {
$extracted = EditPage::extractSectionTitle( $section );
$this->assertEquals( $title, $extracted );
}
$extracted = EditPage::extractSectionTitle( $section );
$this->assertEquals( $title, $extracted );
}
@@
-59,7
+60,7
@@
class EditPageTest extends MediaWikiLangTestCase {
* wrapper around assertEquals() which calls rrtrim() to normalize the
* expected and actual texts.
*/
* wrapper around assertEquals() which calls rrtrim() to normalize the
* expected and actual texts.
*/
- function assertEditedTextEquals( $expected, $actual, $msg = '' ) {
+
protected
function assertEditedTextEquals( $expected, $actual, $msg = '' ) {
return $this->assertEquals( rtrim( $expected ), rtrim( $actual ), $msg );
}
return $this->assertEquals( rtrim( $expected ), rtrim( $actual ), $msg );
}
@@
-172,6
+173,10
@@
class EditPageTest extends MediaWikiLangTestCase {
return $page;
}
return $page;
}
+ /**
+ * @todo split into a dataprovider and test method
+ * @covers EditPage
+ */
public function testCreatePage() {
$this->assertEdit(
'EditPageTest_testCreatePage',
public function testCreatePage() {
$this->assertEdit(
'EditPageTest_testCreatePage',
@@
-338,6
+343,7
@@
hello
/**
* @dataProvider provideSectionEdit
/**
* @dataProvider provideSectionEdit
+ * @covers EditPage
*/
public function testSectionEdit( $base, $section, $text, $summary, $expected ) {
$edit = array(
*/
public function testSectionEdit( $base, $section, $text, $summary, $expected ) {
$edit = array(
@@
-432,6
+438,7
@@
hello
/**
* @dataProvider provideAutoMerge
/**
* @dataProvider provideAutoMerge
+ * @covers EditPage
*/
public function testAutoMerge( $baseUser, $text, $adamsEdit, $bertasEdit,
$expectedCode, $expectedText, $message = null
*/
public function testAutoMerge( $baseUser, $text, $adamsEdit, $bertasEdit,
$expectedCode, $expectedText, $message = null