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
Merge "Prepare for REL1_32 cut, labelling master as 1.33-alpha"
[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
9a64d08
..
1407c10
100644
(file)
--- a/
tests/phpunit/includes/api/MockApi.php
+++ b/
tests/phpunit/includes/api/MockApi.php
@@
-1,12
+1,22
@@
<?php
class MockApi extends ApiBase {
<?php
class MockApi extends ApiBase {
+ public $warnings = [];
+
public function execute() {
}
public function __construct() {
}
public function execute() {
}
public function __construct() {
}
+ public function getModulePath() {
+ return $this->getModuleName();
+ }
+
+ public function addWarning( $warning, $code = null, $data = null ) {
+ $this->warnings[] = $warning;
+ }
+
public function getAllowedParams() {
return [
'filename' => null,
public function getAllowedParams() {
return [
'filename' => null,