MediaWiki
REL1_31
SpecialUploadTest.php
Go to the documentation of this file.
1
<?php
2
3
class
SpecialUploadTest
extends
MediaWikiTestCase
{
8
public
function
testGetInitialPageText
( $expected, $inputParams ) {
9
$result = call_user_func_array( [
'SpecialUpload'
,
'getInitialPageText'
], $inputParams );
10
$this->assertEquals( $expected, $result );
11
}
12
13
public
function
provideGetInitialPageText
() {
14
return
[
15
[
16
'expect'
=>
"== Summary ==\nthis is a test\n"
,
17
'params'
=> [
18
'this is a test'
19
],
20
],
21
[
22
'expect'
=>
"== Summary ==\nthis is a test\n"
,
23
'params'
=> [
24
"== Summary ==\nthis is a test"
,
25
],
26
],
27
];
28
}
29
}
MediaWikiTestCase
Definition
MediaWikiTestCase.php:17
SpecialUploadTest
Definition
SpecialUploadTest.php:3
SpecialUploadTest\testGetInitialPageText
testGetInitialPageText( $expected, $inputParams)
SpecialUpload::getInitialPageText provideGetInitialPageText.
Definition
SpecialUploadTest.php:8
SpecialUploadTest\provideGetInitialPageText
provideGetInitialPageText()
Definition
SpecialUploadTest.php:13
tests
phpunit
includes
specials
SpecialUploadTest.php
Generated on Mon Nov 25 2024 15:36:36 for MediaWiki by
1.10.0