[BUGFIX] Remove the need of PackageStates.php in tests 21/29021/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Tue, 1 Apr 2014 12:15:32 +0000 (14:15 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 1 Apr 2014 18:58:22 +0000 (20:58 +0200)
commit69421102ec5d7fae30dd3d0e91f5d3aa4df0873a
treee4ed284326af7d6ac61c6bee3420a4c99707ad5f
parent28c66c57fcefb9df9ffe0c0a4bb8f310243d7e9b
[BUGFIX] Remove the need of PackageStates.php in tests

Although there is code in the package manager tests
to mock a PackageStates.php file, it does not work
as the path to the file is hardcoded in the initialize
action.

Move the code for setting the path and creating
the package factory to the constructor
and move the mocking of the path before initializing
in the test.

Resolves: #57490
Releases: 6.2
Change-Id: I2ca29016de288017ec73ff36d0dbed1e2be0e67d
Reviewed-on: https://review.typo3.org/29021
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Thomas Maroschik
Reviewed-by: Stefan Neufeind
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Package/PackageManager.php
typo3/sysext/core/Tests/Unit/Package/PackageManagerTest.php