mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning
synced 2024-11-27 15:40:16 +00:00
tests: Make PHPUnit data providers static
Initally used a new sniff with autofix (T333745) Bug: T332865 Change-Id: Ibd68b67915fdcd1a5af5c8aedc7235c0a655434d
This commit is contained in:
parent
f7ec255f3a
commit
f18dd9e52d
|
@ -90,7 +90,7 @@ class HooksTest extends MediaWikiLangTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerOnSiteNoticeAfter(): array {
|
public static function providerOnSiteNoticeAfter(): array {
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
// $wgCookieWarningEnabled
|
// $wgCookieWarningEnabled
|
||||||
|
@ -187,7 +187,7 @@ class HooksTest extends MediaWikiLangTestCase {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function providerOnSiteNoticeAfterGeoLocation() {
|
public static function providerOnSiteNoticeAfterGeoLocation() {
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
'8.8.8.8',
|
'8.8.8.8',
|
||||||
|
|
Loading…
Reference in a new issue