aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/MockApiQueryBase.php
blob: e62316db148803e20e06d258a70cf9275001ad71 (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
<?php

namespace MediaWiki\Tests\Api;

use ApiQueryBase;

class MockApiQueryBase extends ApiQueryBase {
	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();
	}
}