Localisation updates from https://translatewiki.net.
[mediawiki.git] / tests / phpunit / includes / api / MockApiQueryBase.php
blob4a3d79cf0521954a7b4c97a104b6c1790e3b0912
1 <?php
3 namespace MediaWiki\Tests\Api;
5 use MediaWiki\Api\ApiQueryBase;
7 class MockApiQueryBase extends ApiQueryBase {
8 /** @var string */
9 private $name;
11 public function execute() {
14 public function __construct( $name = 'mock' ) {
15 $this->name = $name;
18 public function getModuleName() {
19 return $this->name;
22 public function getModulePath() {
23 return 'query+' . $this->getModuleName();