TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
UnitTestPackageManager Class Reference
Inheritance diagram for UnitTestPackageManager:
PackageManager SingletonInterface

Public Member Functions

 initialize ()
 
- Public Member Functions inherited from PackageManager
 __construct ()
 
 injectCoreCache (\TYPO3\CMS\Core\Cache\Frontend\PhpFrontend $coreCache)
 
 injectDependencyResolver (DependencyResolver $dependencyResolver)
 
 initialize ()
 
 scanAvailablePackages ()
 
 registerPackage (PackageInterface $package)
 
 getPackageKeyFromComposerName ($composerName)
 
 getPackage ($packageKey)
 
 isPackageAvailable ($packageKey)
 
 isPackageActive ($packageKey)
 
 deactivatePackage ($packageKey)
 
 activatePackage ($packageKey)
 
 activatePackageDuringRuntime ($packageKey)
 
 deletePackage ($packageKey)
 
 getActivePackages ()
 
 isPackageKeyValid ($packageKey)
 
 getAvailablePackages ()
 
 unregisterPackage (PackageInterface $package)
 
 getComposerManifest ($manifestPath)
 

Protected Member Functions

 sortAndSavePackageStates ()
 
- Protected Member Functions inherited from PackageManager
 getCacheIdentifier ()
 
 getCacheEntryIdentifier ()
 
 saveToPackageCache ()
 
 loadPackageManagerStatesFromCache ()
 
 loadPackageStates ()
 
 initializePackageObjects ()
 
 registerActivePackage (PackageInterface $package)
 
 initializeCompatibilityLoadedExtArray ()
 
 registerPackageDuringRuntime ($packageKey)
 
 registerPackagesFromConfiguration (array $packages, $registerOnlyNewPackages=false, $packageStatesHasChanged=false)
 
 unregisterPackageByPackageKey ($packageKey)
 
 registerTransientClassLoadingInformationForPackage (PackageInterface $package)
 
 sortActivePackagesByDependencies ()
 
 resolvePackageDependencies ($packageConfig)
 
 getSuggestionArrayForPackage ($packageKey)
 
 sortAndSavePackageStates ()
 
 getExtensionEmConf ($packagePath)
 
 mapExtensionManagerConfigurationToComposerManifest ($packageKey, array $extensionManagerConfiguration,\stdClass $composerManifest)
 
 setComposerManifestValueIfEmpty (\stdClass $manifest, $property, $value)
 
 getDependencyArrayForPackage ($packageKey, array &$dependentPackageKeys=[], array $trace=[])
 
 getPackageKeyFromManifest ($manifest, $packagePath)
 
 getPackageBasePaths ()
 

Additional Inherited Members

- Protected Attributes inherited from PackageManager
 $dependencyResolver
 
 $coreCache
 
 $cacheIdentifier
 
 $packagesBasePaths = []
 
 $packageAliasMap = []
 
 $runtimeActivatedPackages = []
 
 $packagesBasePath = PATH_site
 
 $packages = []
 
 $composerNameToPackageKeyMap = []
 
 $activePackages = []
 
 $packageStatesPathAndFilename
 
 $packageStatesConfiguration = []
 

Detailed Description

This is an intermediate package manager that loads all extensions that are present in one of the package base paths, so that the class loader can find the classes of all tests, whether the according extension is active in the installation itself or not.

Definition at line 23 of file UnitTestPackageManager.php.

Member Function Documentation

initialize ( )

Initializes the package manager

Returns
void

Definition at line 30 of file UnitTestPackageManager.php.

References PackageManager\registerActivePackage(), and PackageManager\scanAvailablePackages().

sortAndSavePackageStates ( )
protected

Overwrite the original method to avoid resolving dependencies (which we do not need) and saving the PackageStates.php file (which we do not want), when calling scanAvailablePackages()

Returns
void

Definition at line 44 of file UnitTestPackageManager.php.