[BUGFIX] Fix failing test 62/23262/2
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 22 Aug 2013 19:22:57 +0000 (21:22 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 22 Aug 2013 19:32:31 +0000 (21:32 +0200)
The test using this file was not adjusted and thus failing.

The test was adjusted and another one added, looking after the new
position.

Resolves: #51273
Relates: #51251
Releases: 6.2
Change-Id: I12aebadfa12633f62b32365b064e802f608f6197
Reviewed-on: https://review.typo3.org/23262
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Tests/Unit/Utility/ExtensionMangementUtilityTest.php

index 6602560..bf83c2f 100644 (file)
@@ -689,7 +689,6 @@ class ExtensionManagementUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
                        'Typo3 relative path' => array('typo3RelPath', 'sysext/cms/'),
                        'Path ext_localconf.php' => array('ext_localconf.php', '/typo3/sysext/cms/ext_localconf.php'),
                        'Path ext_tables.php' => array('ext_tables.php', '/typo3/sysext/cms/ext_tables.php'),
-                       'Path ext_tablps.sql' => array('ext_tables.sql', '/typo3/sysext/cms/ext_tables.sql')
                );
        }
 
@@ -704,6 +703,32 @@ class ExtensionManagementUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
                $this->assertStringEndsWith($expectedContent, $actualArray['cms'][$arrayKeyToTest]);
        }
 
+       /**
+        * Data provider for createTypo3LoadedExtensionInformationArrayReturnsExpectedInformationForFrontendExtension
+        *
+        * @return array
+        */
+       public function createTypo3LoadedExtensionInformationArrayReturnsExpectedInformationForFrontendExtensionDataProvider() {
+               return array(
+                       'System extension' => array('type', 'S'),
+                       'Site relative path' => array('siteRelPath', 'typo3/sysext/frontend/'),
+                       'Typo3 relative path' => array('typo3RelPath', 'sysext/frontend/'),
+                       'Path ext_tables.sql' => array('ext_tables.sql', '/typo3/sysext/frontend/ext_tables.sql')
+               );
+       }
+
+       /**
+        * @param string $arrayKeyToTest
+        * @param string $expectedContent
+        *
+        * @test
+        * @dataProvider createTypo3LoadedExtensionInformationArrayReturnsExpectedInformationForFrontendExtensionDataProvider
+        */
+       public function createTypo3LoadedExtensionInformationArrayReturnsExpectedInformationForFrontendExtension($arrayKeyToTest, $expectedContent) {
+               $actualArray = ExtensionManagementUtilityAccessibleProxy::createTypo3LoadedExtensionInformationArray();
+               $this->assertStringEndsWith($expectedContent, $actualArray['frontend'][$arrayKeyToTest]);
+       }
+
        /////////////////////////////////////////
        // Tests concerning getTypo3LoadedExtensionInformationCacheIdentifier
        /////////////////////////////////////////