| 1 |
<?php |
| 2 |
|
| 3 |
namespace MediaWiki\Tests\Api; |
| 4 |
|
| 5 |
use MediaWiki\Api\ApiBase; |
| 6 |
|
| 7 |
class MockApi extends ApiBase { |
| 8 |
|
| 9 |
public $warnings = []; |
| 10 |
|
| 11 |
public function execute() { |
| 12 |
} |
| 13 |
|
| 14 |
public function __construct() { |
| 15 |
} |
| 16 |
|
| 17 |
public function getModulePath() { |
| 18 |
return $this->getModuleName(); |
| 19 |
} |
| 20 |
|
| 21 |
public function addWarning( $warning, $code = null, $data = null ) { |
| 22 |
$this->warnings[] = $warning; |
| 23 |
} |
| 24 |
|
| 25 |
public function getAllowedParams() { |
| 26 |
return [ |
| 27 |
'filename' => null, |
| 28 |
'enablechunks' => false, |
| 29 |
'sessionkey' => null, |
| 30 |
]; |
| 31 |
} |
| 32 |
} |