jenkins-bot has submitted this change and it was merged.
Change subject: Register directory with UnitTestsList hook
......................................................................
Register directory with UnitTestsList hook
Change-Id: I7a6498af48c0d62428bf012d5045ad3db60aa0cc
---
M Thanks.hooks.php
1 file changed, 1 insertion(+), 14 deletions(-)
Approvals:
Hashar: Looks good to me, approved
jenkins-bot: Verified
diff --git a/Thanks.hooks.php b/Thanks.hooks.php
index c720c02..f9fc91b 100644
--- a/Thanks.hooks.php
+++ b/Thanks.hooks.php
@@ -268,20 +268,7 @@
* @return boolean
*/
public static function registerUnitTests( array &$files ) {
- // @codeCoverageIgnoreStart
- $directoryIterator = new RecursiveDirectoryIterator( __DIR__ .
'/tests/' );
-
- /**
- * @var SplFileInfo $fileInfo
- */
- $ourFiles = array();
- foreach ( new RecursiveIteratorIterator( $directoryIterator )
as $fileInfo ) {
- if ( substr( $fileInfo->getFilename(), -8 ) ===
'Test.php' ) {
- $ourFiles[] = $fileInfo->getPathname();
- }
- }
-
- $files = array_merge( $files, $ourFiles );
+ $files[] = __DIR__ . '/tests/';
return true;
// @codeCoverageIgnoreEnd
}
--
To view, visit https://gerrit.wikimedia.org/r/168321
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7a6498af48c0d62428bf012d5045ad3db60aa0cc
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Thanks
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits