Fixed bug #16847: Use Tx_Phpunit_Service_TestFinder for finding the path of the Core...
[Packages/TYPO3.CMS.git] / tests / t3lib / t3lib_extmgmTest.php
index fac010d..2a47a7a 100644 (file)
@@ -93,18 +93,8 @@ class t3lib_extmgmTest extends tx_phpunit_testcase {
         * @return string the fixtures path for this testcase, will not be empty
         */
        private function determineFixturesPath() {
-               $possibleFixturesPath1 = 'tests/t3lib/fixtures/';
-               $possibleFixturesPath2 = 'typo3_src/tests/t3lib/fixtures/';
-
-               if (file_exists(PATH_site . $possibleFixturesPath1)) {
-                       $fixturesPath = $possibleFixturesPath1;
-               } elseif (file_exists(PATH_site . $possibleFixturesPath2)) {
-                       $fixturesPath = $possibleFixturesPath2;
-               } else {
-                       $this->fail('The fixture path could not be determined.');
-               }
-
-               return $fixturesPath;
+               return t3lib_div::makeInstance('Tx_Phpunit_Service_TestFinder')
+                       ->getRelativeCoreTestsPath() . 't3lib/fixtures/';
        }