Localisation updates from https://translatewiki.net.
[mediawiki.git] / tests / phpunit / includes / api / MockApi.php
blob3a2783b03e365f650cf12a2f100e2bea8b24461e
1 <?php
3 namespace MediaWiki\Tests\Api;
5 use MediaWiki\Api\ApiBase;
7 class MockApi extends ApiBase {
8 /** @var array */
9 public $warnings = [];
11 public function execute() {
14 public function __construct() {
17 public function getModulePath() {
18 return $this->getModuleName();
21 public function addWarning( $warning, $code = null, $data = null ) {
22 $this->warnings[] = $warning;
25 public function getAllowedParams() {
26 return [
27 'filename' => null,
28 'enablechunks' => false,
29 'sessionkey' => null,