aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/MockApiQueryBase.php
blob: 4a3d79cf0521954a7b4c97a104b6c1790e3b0912 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace MediaWiki\Tests\Api;

use MediaWiki\Api\ApiQueryBase;

class MockApiQueryBase extends ApiQueryBase {
	/** @var string */
	private $name;

	public function execute() {
	}

	public function __construct( $name = 'mock' ) {
		$this->name = $name;
	}

	public function getModuleName() {
		return $this->name;
	}

	public function getModulePath() {
		return 'query+' . $this->getModuleName();
	}
}