aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/cache
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/cache')
-rw-r--r--tests/phpunit/includes/cache/GenderCacheTest.php2
-rw-r--r--tests/phpunit/includes/cache/MessageCacheTest.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/phpunit/includes/cache/GenderCacheTest.php b/tests/phpunit/includes/cache/GenderCacheTest.php
index fbce1619dc22..feb762d374e0 100644
--- a/tests/phpunit/includes/cache/GenderCacheTest.php
+++ b/tests/phpunit/includes/cache/GenderCacheTest.php
@@ -11,7 +11,7 @@ class GenderCacheTest extends MediaWikiLangTestCase {
/** @var string[] User key => username */
private static $nameMap;
- function addDBDataOnce() {
+ public function addDBDataOnce() {
// ensure the correct default gender
$this->mergeMwGlobalArrayValue( 'wgDefaultUserOptions', [ 'gender' => 'unknown' ] );
diff --git a/tests/phpunit/includes/cache/MessageCacheTest.php b/tests/phpunit/includes/cache/MessageCacheTest.php
index 869236b43fa1..e786f42ae970 100644
--- a/tests/phpunit/includes/cache/MessageCacheTest.php
+++ b/tests/phpunit/includes/cache/MessageCacheTest.php
@@ -26,7 +26,7 @@ class MessageCacheTest extends MediaWikiLangTestCase {
$this->setContentLang( 'de' );
}
- function addDBDataOnce() {
+ public function addDBDataOnce() {
$this->configureLanguages();
// Set up messages and fallbacks ab -> ru -> de
@@ -89,7 +89,7 @@ class MessageCacheTest extends MediaWikiLangTestCase {
$this->assertEquals( $expectedContent, $result, "Message fallback failed." );
}
- function provideMessagesForFallback() {
+ public function provideMessagesForFallback() {
return [
[ 'FallbackLanguageTest-Full', 'ab', 'ab' ],
[ 'FallbackLanguageTest-Partial', 'ab', 'ru' ],