[TASK] Mock SignalSlot\Dispatcher Singletons in unit tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Utility / AccessibleProxies / ExtensionManagementUtilityAccessibleProxy.php
index 926fe07..1095a46 100644 (file)
@@ -17,6 +17,7 @@ namespace TYPO3\CMS\Core\Tests\Unit\Utility\AccessibleProxies;
 use TYPO3\CMS\Core\Cache\CacheManager;
 use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface;
 use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
+use TYPO3\CMS\Extbase\SignalSlot\Dispatcher;
 
 /**
  * Accessible proxy with protected methods made public
@@ -28,6 +29,11 @@ class ExtensionManagementUtilityAccessibleProxy extends ExtensionManagementUtili
         static::$cacheManager = $cacheManager;
     }
 
+    public static function setSignalSlotDispatcher(Dispatcher $dispatcher = null)
+    {
+        static::$signalSlotDispatcher = $dispatcher;
+    }
+
     public static function getPackageManager()
     {
         return static::$packageManager;