Skip to content
Snippets Groups Projects
Commit aa760ccd authored by Christian Kuhn's avatar Christian Kuhn Committed by Markus Klein
Browse files

[CLEANUP] ExtensionManagementUtilityTest

* Extract the AccessibleProxy to an own file to get
  rid of an evil eval() and make the class smarter
  for IDE's
* Greenify as much as possible for PhpStorm

Change-Id: I851e5e9832633bf2308e50d9d8bce13f6657119d
Resolves: #67113
Releases: master
Reviewed-on: http://review.typo3.org/39665


Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
parent ae3a80db
No related merge requests found
<?php
namespace TYPO3\CMS\Core\Tests\Unit\Utility\AccessibleProxies;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
use TYPO3\CMS\Core\Cache\CacheManager;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
/**
* Accessible proxy with protected methods made public
*/
class ExtensionManagementUtilityAccessibleProxy extends ExtensionManagementUtility {
static public function setCacheManager(CacheManager $cacheManager = NULL) {
static::$cacheManager = $cacheManager;
}
static public function getPackageManager() {
return static::$packageManager;
}
static public function getExtLocalconfCacheIdentifier() {
return parent::getExtLocalconfCacheIdentifier();
}
static public function loadSingleExtLocalconfFiles() {
parent::loadSingleExtLocalconfFiles();
}
static public function getBaseTcaCacheIdentifier() {
return parent::getBaseTcaCacheIdentifier();
}
static public function resetExtTablesWasReadFromCacheOnceBoolean() {
self::$extTablesWasReadFromCacheOnce = FALSE;
}
static public function createExtLocalconfCacheEntry() {
parent::createExtLocalconfCacheEntry();
}
static public function createExtTablesCacheEntry() {
parent::createExtTablesCacheEntry();
}
static public function getExtTablesCacheIdentifier() {
return parent::getExtTablesCacheIdentifier();
}
static public function buildBaseTcaFromSingleFiles() {
$GLOBALS['TCA'] = array();
}
static public function emitTcaIsBeingBuiltSignal(array $tca) {
}
static public function removeDuplicatesForInsertion($insertionList, $list = '') {
return parent::removeDuplicatesForInsertion($insertionList, $list);
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment