/** * Tests whether a faulty overrideIconOverlay hook (the hook object cannot be found) is not called. * * @test */ public function isFaultyOverrideIconOverlayHookNotCalled() { $classReference = uniqid('user_overrideIconOverlayHook'); $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_iconworks.php']['overrideIconOverlay'][$classReference] = $classReference; $GLOBALS['T3_VAR']['getUserObj'][$classReference] = new \stdClass(); IconUtility::mapRecordOverlayToSpriteIconName('tt_content', array()); }