summaryrefslogtreecommitdiff
path: root/www/wiki/tests/phpunit/includes/api/MockApiQueryBase.php
blob: 9915a38d0a457debe57dce81d5bbbea3a41bdd62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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();
	}
}