Refactor ApiTestCase to get token from ApiQueryTokens
[lhc/web/wiklou.git] / tests / phpunit / includes / api / MockApiQueryBase.php
1 <?php
2 class MockApiQueryBase extends ApiQueryBase {
3 private $name;
4
5 public function execute() {
6 }
7
8 public function __construct( $name = 'mock' ) {
9 $this->name = $name;
10 }
11
12 public function getModuleName() {
13 return $this->name;
14 }
15
16 public function getModulePath() {
17 return 'query+' . $this->getModuleName();
18 }
19 }