jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/327433 )
Change subject: Move tests in to tests/phpunit/ directory ...................................................................... Move tests in to tests/phpunit/ directory Change-Id: I8bf0bfde539276ba28bc5a5d8cf5d96d5e5cdc56 --- M StopForumSpam.hooks.php M extension.json R tests/phpunit/StopForumSpamTest.php R tests/phpunit/sample_blacklist.txt R tests/phpunit/sample_blacklist_all.txt 5 files changed, 1 insertion(+), 11 deletions(-) Approvals: Reedy: Looks good to me, approved jenkins-bot: Verified diff --git a/StopForumSpam.hooks.php b/StopForumSpam.hooks.php index a0a7276..fb040dd 100644 --- a/StopForumSpam.hooks.php +++ b/StopForumSpam.hooks.php @@ -207,13 +207,4 @@ return true; } - - /** - * Load our unit tests - */ - public static function onUnitTestsList( &$files ) { - $files = array_merge( $files, glob( __DIR__ . '/tests/*Test.php' ) ); - - return true; - } } diff --git a/extension.json b/extension.json index e96f97e..068200c 100644 --- a/extension.json +++ b/extension.json @@ -52,8 +52,7 @@ "AbuseFilter-generateUserVars": "SFSHooks::abuseFilterGenerateUserVars", "AbuseFilter-builder": "SFSHooks::abuseFilterBuilder", "getUserPermissionsErrorsExpensive": "SFSHooks::onGetUserPermissionsErrorsExpensive", - "OtherBlockLogLink": "SFSHooks::onOtherBlockLogLink", - "UnitTestsList": "SFSHooks::onUnitTestsList" + "OtherBlockLogLink": "SFSHooks::onOtherBlockLogLink" }, "config": { "SFSAPIKey": { diff --git a/tests/StopForumSpamTest.php b/tests/phpunit/StopForumSpamTest.php similarity index 100% rename from tests/StopForumSpamTest.php rename to tests/phpunit/StopForumSpamTest.php diff --git a/tests/sample_blacklist.txt b/tests/phpunit/sample_blacklist.txt similarity index 100% rename from tests/sample_blacklist.txt rename to tests/phpunit/sample_blacklist.txt diff --git a/tests/sample_blacklist_all.txt b/tests/phpunit/sample_blacklist_all.txt similarity index 100% rename from tests/sample_blacklist_all.txt rename to tests/phpunit/sample_blacklist_all.txt -- To view, visit https://gerrit.wikimedia.org/r/327433 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I8bf0bfde539276ba28bc5a5d8cf5d96d5e5cdc56 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/StopForumSpam Gerrit-Branch: master Gerrit-Owner: Legoktm <lego...@member.fsf.org> Gerrit-Reviewer: Reedy <re...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits