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

Change subject: VisualEditor: Add hook handler for UnitTestsList
......................................................................

VisualEditor: Add hook handler for UnitTestsList

Change-Id: Ib1987c9f6acc64711fb5f4ecc33f39d5ba0760a6
---
M VisualEditor/VisualEditor.class.php
M VisualEditor/extension.json
2 files changed, 14 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/58/371458/1

diff --git a/VisualEditor/VisualEditor.class.php 
b/VisualEditor/VisualEditor.class.php
index fe576e2..84d84cf 100644
--- a/VisualEditor/VisualEditor.class.php
+++ b/VisualEditor/VisualEditor.class.php
@@ -534,4 +534,15 @@
 
                return $aConfigs;
        }
+
+       /**
+        * Hook handler for UnitTestList
+        *
+        * @param array $paths
+        * @return boolean
+        */
+       public static function onUnitTestsList( &$paths ) {
+               $paths[] = __DIR__ . '/tests/phpunit/';
+               return true;
+       }
 }
diff --git a/VisualEditor/extension.json b/VisualEditor/extension.json
index 3633a64..505007d 100644
--- a/VisualEditor/extension.json
+++ b/VisualEditor/extension.json
@@ -81,5 +81,8 @@
                "localBasePath": "resources",
                "remoteExtPath": "BlueSpiceExtensions/VisualEditor/resources"
        },
+       "Hooks": {
+               "UnitTestsList" : "BlueSpiceVisualEditor::onUnitTestsList"
+       },
        "manifest_version": 1
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib1987c9f6acc64711fb5f4ecc33f39d5ba0760a6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman <d.savulje...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to