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

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();
	}
}