Commit graph

6 commits

Author SHA1 Message Date
Fomafix 156193fe88 Use $this->getServiceContainer() in tests
Change-Id: I7139a34a6373edd8bd6f42d8716260ef2164e8de
2024-07-27 07:40:58 +00:00
Fomafix 30e24aa1b0 Use overrideConfigValues instead of setMwGlobals
Also use MainConfigNames.

Change-Id: I4255b89b8f34fffe5bc70e73dfe7e9b6a4d69941
2024-07-27 07:22:00 +00:00
Alexander Vorwerk 5ac97cf126 MediaWikiTestCase -> MediaWikiIntegrationTestCase
MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34.

Bug: T293043
Change-Id: I92d2b29501214f00e77c92149038b19d937dcabe
2021-10-12 21:30:58 +02:00
ZabeMath 7e23848ac9 Avoid using User::getBoolOption()
User::getBoolOption() is deprecated and should be replaced with UserOptionsLookup::getBoolOption()

Bug: T277600
Change-Id: I562b19ca41a7ef18be940ec398d58d6873b2555b
2021-03-30 20:31:57 +00:00
Florian Schmidt 6634e8c829 Enable GeoLocation service being replaced by other providers
Making GeoLocation an interface makes it easier to replace the underlying implementation
from the current Http backed method.

Change-Id: I2beb97772fd74ab08b2214c08d82dbc1ebfcdcd2
2019-11-21 17:31:23 +01:00
Florian Schmidt 90d2e58096 Move classes into CookieWarning namespace
This should make the code a bit more structured and easier to navigate
through. It also removes some lines from extension.json as the autoload
classes list is replaced by an autoload namespaces property.

This also changes the minimum requirement of MediaWiki to 1.31 for this
extension to work.

Change-Id: I249ccc3035297c99202a5f83fcc8d3fda68b682c
2018-07-19 12:57:52 +02:00
Renamed from tests/phpunit/includes/CookieWarningDecisionsTest.php (Browse further)