wiki.techinc.nl/tests/phpunit/includes/api/MockApi.php
Reedy 75640200fb tests: Namespace api tests
Bug: T357823
Change-Id: I0d7cc2c9b166d5e5b913c1305f7cee017fe377af
2024-02-18 15:47:04 +00:00

31 lines
493 B
PHP

<?php
namespace MediaWiki\Tests\Api;
use ApiBase;
class MockApi extends ApiBase {
public $warnings = [];
public function execute() {
}
public function __construct() {
}
public function getModulePath() {
return $this->getModuleName();
}
public function addWarning( $warning, $code = null, $data = null ) {
$this->warnings[] = $warning;
}
public function getAllowedParams() {
return [
'filename' => null,
'enablechunks' => false,
'sessionkey' => null,
];
}
}