[TASK] Activate all packages in unit tests 36/29036/10
authorHelmut Hummel <helmut.hummel@typo3.org>
Tue, 1 Apr 2014 10:08:15 +0000 (12:08 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sun, 6 Apr 2014 19:37:49 +0000 (21:37 +0200)
commit5c7a3976be167689dbdbcc9e6775e70385aabf80
tree56d54fef04eaa68ad163a21bb027ee76ac7c564b
parent69f5be0119f9fb285d6165ab3f73aa21c3a0de53
[TASK] Activate all packages in unit tests

Introduce a new package manager class for unit tests
that does not read the PackageState.php file any more
but scans for packages and activates them,
so that the class loader can find the classes of all
extensions even if the according extension is not active in
the current TYPO3 installation.

Since the unit test bootstrap does not read other
extension files (ext_localconf.php, etc.) any more,
we can be sure that this does not introduce any
further side effects.

Since the PackageStates.php file will then be obsolete,
it will be removed from the travis integration repository.

Resolves: #57487
Releases: 6.2
Change-Id: Id0cd50db68fd94a31a996496fd5c54049ca94e78
Reviewed-on: https://review.typo3.org/29036
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/core/Build/UnitTestsBootstrap.php
typo3/sysext/core/Classes/Package/UnitTestPackageManager.php [new file with mode: 0644]