Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5952659
SpecialUploadTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
822 B
Referenced Files
None
Subscribers
None
SpecialUploadTest.php
View Options
<?php
use
MediaWiki\MainConfigNames
;
use
MediaWiki\Specials\SpecialUpload
;
class
SpecialUploadTest
extends
MediaWikiIntegrationTestCase
{
/**
* @covers \MediaWiki\Specials\SpecialUpload::getInitialPageText
* @dataProvider provideGetInitialPageText
*/
public
function
testGetInitialPageText
(
$expected
,
$inputParams
)
{
$this
->
overrideConfigValue
(
MainConfigNames
::
LanguageCode
,
'en'
);
$result
=
SpecialUpload
::
getInitialPageText
(
...
$inputParams
);
$this
->
assertEquals
(
$expected
,
$result
);
}
public
static
function
provideGetInitialPageText
()
{
return
[
[
'expect'
=>
"== Summary ==
\n
this is a test
\n
"
,
'params'
=>
[
'this is a test'
],
],
[
'expect'
=>
"== Summary ==
\n
this is a test
\n
"
,
'params'
=>
[
"== Summary ==
\n
this is a test"
,
],
],
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 3 2026, 01:38 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e0/5a/5a03fdc977151a3b923ec360270e
Default Alt Text
SpecialUploadTest.php (822 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment