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 "HTML escape parameter 'text' of hook 'SkinEditSectionLinks'"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
mocks
/
filerepo
/
MockLocalRepo.php
diff --git
a/tests/phpunit/mocks/filerepo/MockLocalRepo.php
b/tests/phpunit/mocks/filerepo/MockLocalRepo.php
index
eeaf05a
..
b2c51ca
100644
(file)
--- a/
tests/phpunit/mocks/filerepo/MockLocalRepo.php
+++ b/
tests/phpunit/mocks/filerepo/MockLocalRepo.php
@@
-7,17
+7,16
@@
* @since 1.28
*/
class MockLocalRepo extends LocalRepo {
* @since 1.28
*/
class MockLocalRepo extends LocalRepo {
- function getLocalCopy( $virtualUrl ) {
- return new MockFSFile(
wfTempDir() . '/' . wfRandomString( 32 )
);
+
public
function getLocalCopy( $virtualUrl ) {
+ return new MockFSFile(
"Fake path for $virtualUrl"
);
}
}
- function getLocalReference( $virtualUrl ) {
- return new MockFSFile(
wfTempDir() . '/' . wfRandomString( 32 )
);
+
public
function getLocalReference( $virtualUrl ) {
+ return new MockFSFile(
"Fake path for $virtualUrl"
);
}
}
- function getFileProps( $virtualUrl ) {
+
public
function getFileProps( $virtualUrl ) {
$fsFile = $this->getLocalReference( $virtualUrl );
$fsFile = $this->getLocalReference( $virtualUrl );
-
return $fsFile->getProps();
}
}
return $fsFile->getProps();
}
}