MediaWiki REL1_31
SpecialUploadTest.php
Go to the documentation of this file.
1<?php
2
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}
testGetInitialPageText( $expected, $inputParams)
SpecialUpload::getInitialPageText provideGetInitialPageText.