Phuedx has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/383350 )

Change subject: Register PHPUnit tests via UnitTestsList hook
......................................................................

Register PHPUnit tests via UnitTestsList hook

Change-Id: Ieca8a54df476c5de22b4ceff303ea8b855b1e52a
---
M Collection.hooks.php
1 file changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection 
refs/changes/50/383350/1

diff --git a/Collection.hooks.php b/Collection.hooks.php
index abd8ac6..d69e4ca 100644
--- a/Collection.hooks.php
+++ b/Collection.hooks.php
@@ -440,4 +440,17 @@
                }
                return true;
        }
+
+       /**
+        * [UnitTestsList][0] hook handler.
+        *
+        * Registers the extension's PHPUnit tests.
+        *
+        * [0]: https://www.mediawiki.org/wiki/Manual:Hooks/UnitTestsList.
+        *
+        * @param array &$paths
+        */
+       public static function onUnitTestsList( array &$paths ) {
+               $paths[] = __DIR__ . '/tests/phpunit';
+       }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/383350
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieca8a54df476c5de22b4ceff303ea8b855b1e52a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Collection
Gerrit-Branch: master
Gerrit-Owner: Phuedx <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to