Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/313653
Change subject: Remove UnitTestsList hook subscriber
......................................................................
Remove UnitTestsList hook subscriber
Bug: T142121
Change-Id: I304fb53f3d10db40797322a3565395d4f8447454
---
M backend/MWOAuth.hooks.php
M extension.json
R tests/phpunit/Mock_OAuthBaseStringRequest.php
R tests/phpunit/Mock_OAuthDataStore.php
R tests/phpunit/Mock_OAuthSignatureMethod_RSA_SHA1.php
R tests/phpunit/OAuthConsumerTest.php
R tests/phpunit/OAuthRequestTest.php
R tests/phpunit/OAuthServerTest.php
R tests/phpunit/OAuthSignatureMethodHmacSha1Test.php
R tests/phpunit/OAuthSignatureMethodRsaSha1Test.php
R tests/phpunit/OAuthTokenTest.php
R tests/phpunit/OAuthUtilTest.php
R tests/phpunit/common.php
13 files changed, 0 insertions(+), 11 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OAuth
refs/changes/53/313653/1
diff --git a/backend/MWOAuth.hooks.php b/backend/MWOAuth.hooks.php
index 63194fb..b6ea001 100644
--- a/backend/MWOAuth.hooks.php
+++ b/backend/MWOAuth.hooks.php
@@ -164,14 +164,4 @@
$wgMWOAuthSharedUserIDs = true;
}
}
-
- public static function onUnitTestsList( array &$files ) {
- $directoryIterator = new \RecursiveDirectoryIterator( __DIR__ .
'/../tests/' );
- foreach ( new \RecursiveIteratorIterator( $directoryIterator )
as $fileInfo ) {
- if ( substr( $fileInfo->getFilename(), -8 ) ===
'Test.php' ) {
- $files[] = $fileInfo->getPathname();
- }
- }
- return true;
- }
}
diff --git a/extension.json b/extension.json
index 27ce6c9..0a3e0b6 100644
--- a/extension.json
+++ b/extension.json
@@ -123,7 +123,6 @@
"MergeAccountFromTo":
"MediaWiki\\Extensions\\OAuth\\MWOAuthHooks::onMergeAccountFromTo",
"CentralAuthGlobalUserMerged":
"MediaWiki\\Extensions\\OAuth\\MWOAuthHooks::onCentralAuthGlobalUserMerged",
"LoadExtensionSchemaUpdates":
"MediaWiki\\Extensions\\OAuth\\MWOAuthUpdaterHooks::addSchemaUpdates",
- "UnitTestsList":
"MediaWiki\\Extensions\\OAuth\\MWOAuthHooks::onUnitTestsList",
"GetPreferences":
"MediaWiki\\Extensions\\OAuth\\MWOAuthUIHooks::onGetPreferences",
"MessagesPreLoad":
"MediaWiki\\Extensions\\OAuth\\MWOAuthUIHooks::onMessagesPreLoad",
"SpecialPageAfterExecute":
"MediaWiki\\Extensions\\OAuth\\MWOAuthUIHooks::onSpecialPageAfterExecute",
diff --git a/tests/lib/Mock_OAuthBaseStringRequest.php
b/tests/phpunit/Mock_OAuthBaseStringRequest.php
similarity index 100%
rename from tests/lib/Mock_OAuthBaseStringRequest.php
rename to tests/phpunit/Mock_OAuthBaseStringRequest.php
diff --git a/tests/lib/Mock_OAuthDataStore.php
b/tests/phpunit/Mock_OAuthDataStore.php
similarity index 100%
rename from tests/lib/Mock_OAuthDataStore.php
rename to tests/phpunit/Mock_OAuthDataStore.php
diff --git a/tests/lib/Mock_OAuthSignatureMethod_RSA_SHA1.php
b/tests/phpunit/Mock_OAuthSignatureMethod_RSA_SHA1.php
similarity index 100%
rename from tests/lib/Mock_OAuthSignatureMethod_RSA_SHA1.php
rename to tests/phpunit/Mock_OAuthSignatureMethod_RSA_SHA1.php
diff --git a/tests/lib/OAuthConsumerTest.php
b/tests/phpunit/OAuthConsumerTest.php
similarity index 100%
rename from tests/lib/OAuthConsumerTest.php
rename to tests/phpunit/OAuthConsumerTest.php
diff --git a/tests/lib/OAuthRequestTest.php b/tests/phpunit/OAuthRequestTest.php
similarity index 100%
rename from tests/lib/OAuthRequestTest.php
rename to tests/phpunit/OAuthRequestTest.php
diff --git a/tests/lib/OAuthServerTest.php b/tests/phpunit/OAuthServerTest.php
similarity index 100%
rename from tests/lib/OAuthServerTest.php
rename to tests/phpunit/OAuthServerTest.php
diff --git a/tests/lib/OAuthSignatureMethodHmacSha1Test.php
b/tests/phpunit/OAuthSignatureMethodHmacSha1Test.php
similarity index 100%
rename from tests/lib/OAuthSignatureMethodHmacSha1Test.php
rename to tests/phpunit/OAuthSignatureMethodHmacSha1Test.php
diff --git a/tests/lib/OAuthSignatureMethodRsaSha1Test.php
b/tests/phpunit/OAuthSignatureMethodRsaSha1Test.php
similarity index 100%
rename from tests/lib/OAuthSignatureMethodRsaSha1Test.php
rename to tests/phpunit/OAuthSignatureMethodRsaSha1Test.php
diff --git a/tests/lib/OAuthTokenTest.php b/tests/phpunit/OAuthTokenTest.php
similarity index 100%
rename from tests/lib/OAuthTokenTest.php
rename to tests/phpunit/OAuthTokenTest.php
diff --git a/tests/lib/OAuthUtilTest.php b/tests/phpunit/OAuthUtilTest.php
similarity index 100%
rename from tests/lib/OAuthUtilTest.php
rename to tests/phpunit/OAuthUtilTest.php
diff --git a/tests/lib/common.php b/tests/phpunit/common.php
similarity index 100%
rename from tests/lib/common.php
rename to tests/phpunit/common.php
--
To view, visit https://gerrit.wikimedia.org/r/313653
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I304fb53f3d10db40797322a3565395d4f8447454
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OAuth
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits