dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mass conversion to SpecialPageFactory service
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
api
/
MockApi.php
diff --git
a/tests/phpunit/includes/api/MockApi.php
b/tests/phpunit/includes/api/MockApi.php
index
d7db538
..
1407c10
100644
(file)
--- a/
tests/phpunit/includes/api/MockApi.php
+++ b/
tests/phpunit/includes/api/MockApi.php
@@
-9,7
+9,11
@@
class MockApi extends ApiBase {
public function __construct() {
}
public function __construct() {
}
- public function setWarning( $warning ) {
+ public function getModulePath() {
+ return $this->getModuleName();
+ }
+
+ public function addWarning( $warning, $code = null, $data = null ) {
$this->warnings[] = $warning;
}
$this->warnings[] = $warning;
}