[TASK] Clean up extensionmanager test directory
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 1 Sep 2012 21:43:56 +0000 (23:43 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 1 Sep 2012 21:48:57 +0000 (23:48 +0200)
There are still those empty 'old' test files from the namespace script
that moved the tests to the Tests/Unit subfolder. They are removed now.
Additionally the test class comments to state the name of the class
under test are removed, this information is redundant and is obvious
from the test class and file name.

Change-Id: I0ef68252543e058cb76137518276fa2db4f9febd
Resolves: #40517
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14277
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
21 files changed:
typo3/sysext/extensionmanager/Tests/Controller/UpdateFromTerControllerTest.php [deleted file]
typo3/sysext/extensionmanager/Tests/Domain/Model/DownloadQueueTest.php [deleted file]
typo3/sysext/extensionmanager/Tests/Repository/ConfigurationItemRepositoryTest.php [deleted file]
typo3/sysext/extensionmanager/Tests/Service/ManagementTest.php [deleted file]
typo3/sysext/extensionmanager/Tests/Unit/Controller/UpdateFromTerControllerTest.php
typo3/sysext/extensionmanager/Tests/Unit/Domain/Model/DownloadQueueTest.php
typo3/sysext/extensionmanager/Tests/Unit/Domain/Repository/ConfigurationItemRepositoryTest.php [new file with mode: 0644]
typo3/sysext/extensionmanager/Tests/Unit/Repository/ConfigurationItemRepositoryTest.php [deleted file]
typo3/sysext/extensionmanager/Tests/Unit/Service/ExtensionManagementServiceTest.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/ConfigurationUtilityTest.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/DependencyUtilityTest.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/EmConfUtilityTest.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/FileHandlingUtilityTest.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php
typo3/sysext/extensionmanager/Tests/Utility/ConfigurationTest.php [deleted file]
typo3/sysext/extensionmanager/Tests/Utility/DependencyTest.php [deleted file]
typo3/sysext/extensionmanager/Tests/Utility/EmConfTest.php [deleted file]
typo3/sysext/extensionmanager/Tests/Utility/FilehandlingTest.php [deleted file]
typo3/sysext/extensionmanager/Tests/Utility/InstallTest.php [deleted file]
typo3/sysext/extensionmanager/Tests/Utility/ListTest.php [deleted file]

diff --git a/typo3/sysext/extensionmanager/Tests/Controller/UpdateFromTerControllerTest.php b/typo3/sysext/extensionmanager/Tests/Controller/UpdateFromTerControllerTest.php
deleted file mode 100644 (file)
index 0ec4cd1..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * @deprecated since 6.0, the classname Tx_Extensionmanager_Controller_UpdateFromTerControllerTest and this file is obsolete
- * and will be removed by 7.0. The class was renamed and is now located at:
- * typo3/sysext/extensionmanager/Tests/Unit/Controller/UpdateFromTerControllerTest.php
- */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Tests/Unit/Controller/UpdateFromTerControllerTest.php';
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extensionmanager/Tests/Domain/Model/DownloadQueueTest.php b/typo3/sysext/extensionmanager/Tests/Domain/Model/DownloadQueueTest.php
deleted file mode 100644 (file)
index 479e7ff..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * @deprecated since 6.0, the classname Tx_Extensionmanager_Domain_Model_DownloadQueueTest and this file is obsolete
- * and will be removed by 7.0. The class was renamed and is now located at:
- * typo3/sysext/extensionmanager/Tests/Unit/Domain/Model/DownloadQueueTest.php
- */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Tests/Unit/Domain/Model/DownloadQueueTest.php';
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extensionmanager/Tests/Repository/ConfigurationItemRepositoryTest.php b/typo3/sysext/extensionmanager/Tests/Repository/ConfigurationItemRepositoryTest.php
deleted file mode 100644 (file)
index 4b67b23..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * @deprecated since 6.0, the classname Tx_Extensionmanager_Repository_ConfigurationItemRepositoryTest and this file is obsolete
- * and will be removed by 7.0. The class was renamed and is now located at:
- * typo3/sysext/extensionmanager/Tests/Unit/Repository/ConfigurationItemRepositoryTest.php
- */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Tests/Unit/Repository/ConfigurationItemRepositoryTest.php';
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extensionmanager/Tests/Service/ManagementTest.php b/typo3/sysext/extensionmanager/Tests/Service/ManagementTest.php
deleted file mode 100644 (file)
index 92c9a4c..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * @deprecated since 6.0, the classname Tx_Extensionmanager_Service_ManagementServiceTest and this file is obsolete
- * and will be removed by 7.0. The class was renamed and is now located at:
- * typo3/sysext/extensionmanager/Tests/Unit/Service/ExtensionManagementServiceTest.php
- */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Tests/Unit/Service/ExtensionManagementServiceTest.php';
-?>
\ No newline at end of file
index 606be96..eacd4d1 100644 (file)
@@ -23,9 +23,8 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Controller;
  *
  * This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
- * Testcase for the Tx_Extensionmanager_Utility_List class in the TYPO3 Core.
- *
  * @package Extension Manager
  * @subpackage Tests
  */
index 97ea065..a303e12 100644 (file)
@@ -23,9 +23,8 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Domain\Model;
  *
  * This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
- * Testcase for the Tx_Extensionmanager_Utility_List class in the TYPO3 Core.
- *
  * @package Extension Manager
  * @subpackage Tests
  */
diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Domain/Repository/ConfigurationItemRepositoryTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Domain/Repository/ConfigurationItemRepositoryTest.php
new file mode 100644 (file)
index 0000000..b4bb7b6
--- /dev/null
@@ -0,0 +1,319 @@
+<?php
+namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Domain\Repository;
+
+/***************************************************************
+ * Copyright notice
+ *
+ * (c) 2012 Susanne Moog, <susanne.moog@typo3.org>
+ * All rights reserved
+ *
+ * This script is part of the TYPO3 project. The TYPO3 project is
+ * free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * The GNU General Public License can be found at
+ * http://www.gnu.org/copyleft/gpl.html.
+ *
+ * This script is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * This copyright notice MUST APPEAR in all copies of the script!
+ ***************************************************************/
+
+/**
+ * @package Extension Manager
+ * @subpackage Tests
+ */
+class ConfigurationItemRepositoryTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+
+       /**
+        * @var \TYPO3\CMS\Extensionmanager\Domain\Repository\ConfigurationItemRepository
+        */
+       public $configurationItemRepository;
+
+       /**
+        * @return void
+        */
+       public function setUp() {
+               $className = $this->getConfigurationItemRepositoryMock();
+               $this->configurationItemRepository = new $className();
+       }
+
+       /**
+        * @return string
+        */
+       public function getConfigurationItemRepositoryMock() {
+               $className = 'Tx_Extensionmanager_Repository_ConfigurationItemRepositoryMock';
+               if (!class_exists($className, FALSE)) {
+                       eval((((((((((((((('class ' . $className) . ' extends TYPO3\\CMS\\Extensionmanager\\Domain\\Repository\\ConfigurationItemRepository {') . '  public function addMetaInformation(&$configuration) {') . '    return parent::addMetaInformation($configuration);') . '  }') . '  public function extractInformationForConfigFieldsOfTypeUser($configurationOption) {') . '    return parent::extractInformationForConfigFieldsOfTypeUser($configurationOption);') . '  }') . '  public function extractInformationForConfigFieldsOfTypeOptions($configurationOption) {') . '    return parent::extractInformationForConfigFieldsOfTypeOptions($configurationOption);') . '  }') . '  public function mergeWithExistingConfiguration(array $configuration, array $extension) {') . '    return parent::mergeWithExistingConfiguration($configuration, $extension);') . '  }') . '}');
+               }
+               return $className;
+       }
+
+       /**
+        * @test
+        * @return void
+        */
+       public function addMetaInformationUnsetsOriginalConfigurationMetaKey() {
+               $configuration = array(
+                       '__meta__' => 'metaInformation',
+                       'test123' => 'test123'
+               );
+               $this->configurationItemRepository->addMetaInformation($configuration);
+               $this->assertEquals(array('test123' => 'test123'), $configuration);
+       }
+
+       /**
+        * @test
+        * @return void
+        */
+       public function addMetaInformationReturnsMetaInformation() {
+               $configuration = array(
+                       '__meta__' => 'metaInformation',
+                       'test123' => 'test123'
+               );
+               $meta = $this->configurationItemRepository->addMetaInformation($configuration);
+               $this->assertEquals('metaInformation', $meta);
+       }
+
+       /**
+        * @return array
+        */
+       public function extractInformationForConfigFieldsOfTypeUserAddsGenericAndTypeInformationDataProvider() {
+               return array(
+                       array(
+                               array(
+                                       'cat' => 'basic',
+                                       'subcat_name' => 'enable',
+                                       'subcat' => 'a/enable/z',
+                                       'type' => 'user[EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationFrontend]',
+                                       'label' => 'Frontend configuration check',
+                                       'name' => 'checkConfigurationFE',
+                                       'value' => 0,
+                                       'default_value' => 0,
+                                       'comparisonGeneric' => 'EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationFrontend'
+                               )
+                       ),
+                       array(
+                               array(
+                                       'cat' => 'basic',
+                                       'subcat_name' => 'enable',
+                                       'subcat' => 'a/enable/z',
+                                       'type' => 'user[EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationBackend]',
+                                       'label' => 'Backend configuration check',
+                                       'name' => 'checkConfigurationBE',
+                                       'value' => 0,
+                                       'default_value' => 0,
+                                       'comparisonGeneric' => 'EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationBackend'
+                               )
+                       ),
+                       array(
+                               array(
+                                       'cat' => 'basic',
+                                       'subcat_name' => 'enable',
+                                       'subcat' => 'a/enable/z',
+                                       'type' => 'user[EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->buildHashMethodSelectorFE]',
+                                       'label' => 'Hashing method for the frontend: Defines salted hashing method to use. Choose "Portable PHP password hashing" to stay compatible with other CMS (e.g. Drupal, Wordpress). Choose "MD5 salted hashing" to reuse TYPO3 passwords for OS level authentication (other servers could use TYPO3 passwords). Choose "Blowfish salted hashing" for advanced security to reuse passwords on OS level (Blowfish might not be supported on your system TODO).',
+                                       'name' => 'FE.saltedPWHashingMethod',
+                                       'value' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\PhpassSalt',
+                                       'default_value' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\PhpassSalt',
+                                       'comparisonGeneric' => 'EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->buildHashMethodSelectorFE'
+                               )
+                       )
+               );
+       }
+
+       /**
+        * @test
+        * @dataProvider extractInformationForConfigFieldsOfTypeUserAddsGenericAndTypeInformationDataProvider
+        * @param $configurationOption
+        * @return void
+        */
+       public function extractInformationForConfigFieldsOfTypeUserAddsGenericAndTypeInformation($configurationOption) {
+               $configurationOptionModified = $this->configurationItemRepository->extractInformationForConfigFieldsOfTypeUser($configurationOption);
+               $this->assertEquals('user', $configurationOptionModified['type']);
+               $this->assertEquals($configurationOption['comparisonGeneric'], $configurationOptionModified['generic']);
+       }
+
+       /**
+        * @test
+        * @return void
+        */
+       public function extractInformationForConfigFieldsOfTypeOptionsAddsGenericTypeAndLabelInformation() {
+               $option = array(
+                       'cat' => 'basic',
+                       'subcat_name' => 'enable',
+                       'subcat' => 'a/enable/100z',
+                       'type' => 'options[Minimal (Most features disabled. Administrator needs to enable them using TypoScript. For advanced administrators only.),Typical (Most commonly used features are enabled. Select this option if you are unsure which one to use.),Demo (Show-off configuration. Includes pre-configured styles. Not for production environments.)]',
+                       'label' => 'Default configuration settings',
+                       'name' => 'defaultConfiguration',
+                       'value' => 'Typical (Most commonly used features are enabled. Select this option if you are unsure which one to use.)',
+                       'default_value' => 'Typical (Most commonly used features are enabled. Select this option if you are unsure which one to use.)',
+                       'genericComparisonValue' => array(
+                               'Minimal (Most features disabled. Administrator needs to enable them using TypoScript. For advanced administrators only.)' => 'Minimal (Most features disabled. Administrator needs to enable them using TypoScript. For advanced administrators only.)',
+                               'Typical (Most commonly used features are enabled. Select this option if you are unsure which one to use.)' => 'Typical (Most commonly used features are enabled. Select this option if you are unsure which one to use.)',
+                               'Demo (Show-off configuration. Includes pre-configured styles. Not for production environments.)' => 'Demo (Show-off configuration. Includes pre-configured styles. Not for production environments.)'
+                       ),
+                       'typeComparisonValue' => 'options'
+               );
+               $optionModified = $this->configurationItemRepository->extractInformationForConfigFieldsOfTypeOptions($option);
+               $this->assertArrayHasKey('generic', $optionModified);
+               $this->assertArrayHasKey('type', $optionModified);
+               $this->assertArrayHasKey('label', $optionModified);
+               $this->assertEquals($option['genericComparisonValue'], $optionModified['generic']);
+               $this->assertEquals($option['typeComparisonValue'], $optionModified['type']);
+       }
+
+       /**
+        * @test
+        * @return void
+        */
+       public function mergeWithExistingConfigurationOverwritesDefaultKeysWithCurrent() {
+               $backupExtConf = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'];
+               $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['testextensionkey'] = serialize(array(
+                       'FE.' => array(
+                               'enabled' => '1',
+                               'saltedPWHashingMethod' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\SaltInterface_sha1'
+                       ),
+                       'CLI.' => array(
+                               'enabled' => '0'
+                       )
+               ));
+               $defaultConfiguration = array(
+                       'FE.enabled' => array(
+                               'value' => '0'
+                       ),
+                       'FE.saltedPWHashingMethod' => array(
+                               'value' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\Md5Salt'
+                       ),
+                       'BE.enabled' => array(
+                               'value' => '1'
+                       ),
+                       'BE.saltedPWHashingMethod' => array(
+                               'value' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\Md5Salt'
+                       )
+               );
+               $expectedResult = array(
+                       'FE.enabled' => array(
+                               'value' => '1'
+                       ),
+                       'FE.saltedPWHashingMethod' => array(
+                               'value' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\SaltInterface_sha1'
+                       ),
+                       'BE.enabled' => array(
+                               'value' => '1'
+                       ),
+                       'BE.saltedPWHashingMethod' => array(
+                               'value' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\Md5Salt'
+                       ),
+                       'CLI.enabled' => array(
+                               'value' => '0'
+                       )
+               );
+               $result = $this->configurationItemRepository->mergeWithExistingConfiguration($defaultConfiguration, array('key' => 'testextensionkey'));
+               $this->assertEquals($expectedResult, $result);
+               $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'] = $backupExtConf;
+       }
+
+       /**
+        * @return array
+        */
+       public function createArrayFromConstantsCreatesAnArrayWithMetaInformationDataProvider() {
+               return array(
+                       'demo data from salted passwords' => array(
+                               '
+# cat=basic/enable; type=user[EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationFrontend]; label=Frontend configuration check
+checkConfigurationFE=0
+
+# cat=advancedBackend; type=boolean; label=Force salted passwords: Enforce usage of SaltedPasswords. Old MD5 hashed passwords will stop working.
+BE.forceSalted = 0
+
+TSConstantEditor.advancedbackend {
+  description = <span style="background:red; padding:1px 2px; color:#fff; font-weight:bold;">1</span> Install tool has hardcoded md5 hashing, enabling this setting will prevent use of a install-tool-created BE user.<br />Currently same is for changin password with user setup module unless you use pending patch!
+                       1=BE.forceSalted
+}',
+                               array(
+                                       'checkConfigurationFE' => array(
+                                               'cat' => 'basic',
+                                               'subcat_name' => 'enable',
+                                               'subcat' => 'a/enable/z',
+                                               'type' => 'user[EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationFrontend]',
+                                               'label' => 'Frontend configuration check',
+                                               'name' => 'checkConfigurationFE',
+                                               'value' => '0',
+                                               'default_value' => '0'
+                                       ),
+                                       'BE.forceSalted' => array(
+                                               'cat' => 'advancedbackend',
+                                               'subcat' => 'x/z',
+                                               'type' => 'boolean',
+                                               'label' => 'Force salted passwords: Enforce usage of SaltedPasswords. Old MD5 hashed passwords will stop working.',
+                                               'name' => 'BE.forceSalted',
+                                               'value' => '0',
+                                               'default_value' => '0'
+                                       )
+                               ),
+                               array(
+                                       'advancedbackend.' => array(
+                                               'description' => '<span style="background:red; padding:1px 2px; color:#fff; font-weight:bold;">1</span> Install tool has hardcoded md5 hashing, enabling this setting will prevent use of a install-tool-created BE user.<br />Currently same is for changin password with user setup module unless you use pending patch!',
+                                               1 => 'BE.forceSalted'
+                                       )
+                               ),
+                               array(
+                                       'checkConfigurationFE' => array(
+                                               'cat' => 'basic',
+                                               'subcat_name' => 'enable',
+                                               'subcat' => 'a/enable/z',
+                                               'type' => 'user[EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationFrontend]',
+                                               'label' => 'Frontend configuration check',
+                                               'name' => 'checkConfigurationFE',
+                                               'value' => '0',
+                                               'default_value' => '0'
+                                       ),
+                                       'BE.forceSalted' => array(
+                                               'cat' => 'advancedbackend',
+                                               'subcat' => 'x/z',
+                                               'type' => 'boolean',
+                                               'label' => 'Force salted passwords: Enforce usage of SaltedPasswords. Old MD5 hashed passwords will stop working.',
+                                               'name' => 'BE.forceSalted',
+                                               'value' => '0',
+                                               'default_value' => '0',
+                                               'highlight' => 1
+                                       ),
+                                       '__meta__' => array(
+                                               'advancedbackend' => array(
+                                                       'highlightText' => '<span style="background:red; padding:1px 2px; color:#fff; font-weight:bold;">1</span> Install tool has hardcoded md5 hashing, enabling this setting will prevent use of a install-tool-created BE user.<br />Currently same is for changin password with user setup module unless you use pending patch!'
+                                               )
+                                       )
+                               )
+                       )
+               );
+       }
+
+       /**
+        * @test
+        * @dataProvider createArrayFromConstantsCreatesAnArrayWithMetaInformationDataProvider
+        * @param $raw
+        * @param $constants
+        * @param $setupTsConstantEditor
+        * @param $expected
+        * @return void
+        */
+       public function createArrayFromConstantsCreatesAnArrayWithMetaInformation($raw, $constants, $setupTsConstantEditor, $expected) {
+               $tsStyleConfig = $this->getMock('TYPO3\\CMS\\Core\\TypoScript\\ConfigurationForm');
+               $configurationItemRepositoryMock = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Repository\\ConfigurationItemRepository', array('getT3libTsStyleConfig'));
+               $configurationItemRepositoryMock->expects($this->once())->method('getT3libTsStyleConfig')->will($this->returnValue($tsStyleConfig));
+               $tsStyleConfig->expects($this->once())->method('ext_initTSstyleConfig')->with($raw, $this->anything(), $this->anything(), $this->anything())->will($this->returnValue($constants));
+               $tsStyleConfig->setup['constants']['TSConstantEditor.'] = $setupTsConstantEditor;
+               $constantsResult = $configurationItemRepositoryMock->createArrayFromConstants($raw, array());
+               $this->assertEquals($expected, $constantsResult);
+       }
+
+}
+
+
+?>
\ No newline at end of file
diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Repository/ConfigurationItemRepositoryTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Repository/ConfigurationItemRepositoryTest.php
deleted file mode 100644 (file)
index e1c7ed3..0000000
+++ /dev/null
@@ -1,320 +0,0 @@
-<?php
-namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Repository;
-
-/***************************************************************
- * Copyright notice
- *
- * (c) 2012 Susanne Moog, <susanne.moog@typo3.org>
- * All rights reserved
- *
- * This script is part of the TYPO3 project. The TYPO3 project is
- * free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * The GNU General Public License can be found at
- * http://www.gnu.org/copyleft/gpl.html.
- *
- * This script is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * This copyright notice MUST APPEAR in all copies of the script!
- ***************************************************************/
-/**
- * Testcase for the Tx_Extensionmanager_Utility_List class in the TYPO3 Core.
- *
- * @package Extension Manager
- * @subpackage Tests
- */
-class ConfigurationItemRepositoryTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
-
-       /**
-        * @var \TYPO3\CMS\Extensionmanager\Domain\Repository\ConfigurationItemRepository
-        */
-       public $configurationItemRepository;
-
-       /**
-        * @return void
-        */
-       public function setUp() {
-               $className = $this->getConfigurationItemRepositoryMock();
-               $this->configurationItemRepository = new $className();
-       }
-
-       /**
-        * @return string
-        */
-       public function getConfigurationItemRepositoryMock() {
-               $className = 'Tx_Extensionmanager_Repository_ConfigurationItemRepositoryMock';
-               if (!class_exists($className, FALSE)) {
-                       eval((((((((((((((('class ' . $className) . ' extends TYPO3\\CMS\\Extensionmanager\\Domain\\Repository\\ConfigurationItemRepository {') . '  public function addMetaInformation(&$configuration) {') . '    return parent::addMetaInformation($configuration);') . '  }') . '  public function extractInformationForConfigFieldsOfTypeUser($configurationOption) {') . '    return parent::extractInformationForConfigFieldsOfTypeUser($configurationOption);') . '  }') . '  public function extractInformationForConfigFieldsOfTypeOptions($configurationOption) {') . '    return parent::extractInformationForConfigFieldsOfTypeOptions($configurationOption);') . '  }') . '  public function mergeWithExistingConfiguration(array $configuration, array $extension) {') . '    return parent::mergeWithExistingConfiguration($configuration, $extension);') . '  }') . '}');
-               }
-               return $className;
-       }
-
-       /**
-        * @test
-        * @return void
-        */
-       public function addMetaInformationUnsetsOriginalConfigurationMetaKey() {
-               $configuration = array(
-                       '__meta__' => 'metaInformation',
-                       'test123' => 'test123'
-               );
-               $this->configurationItemRepository->addMetaInformation($configuration);
-               $this->assertEquals(array('test123' => 'test123'), $configuration);
-       }
-
-       /**
-        * @test
-        * @return void
-        */
-       public function addMetaInformationReturnsMetaInformation() {
-               $configuration = array(
-                       '__meta__' => 'metaInformation',
-                       'test123' => 'test123'
-               );
-               $meta = $this->configurationItemRepository->addMetaInformation($configuration);
-               $this->assertEquals('metaInformation', $meta);
-       }
-
-       /**
-        * @return array
-        */
-       public function extractInformationForConfigFieldsOfTypeUserAddsGenericAndTypeInformationDataProvider() {
-               return array(
-                       array(
-                               array(
-                                       'cat' => 'basic',
-                                       'subcat_name' => 'enable',
-                                       'subcat' => 'a/enable/z',
-                                       'type' => 'user[EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationFrontend]',
-                                       'label' => 'Frontend configuration check',
-                                       'name' => 'checkConfigurationFE',
-                                       'value' => 0,
-                                       'default_value' => 0,
-                                       'comparisonGeneric' => 'EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationFrontend'
-                               )
-                       ),
-                       array(
-                               array(
-                                       'cat' => 'basic',
-                                       'subcat_name' => 'enable',
-                                       'subcat' => 'a/enable/z',
-                                       'type' => 'user[EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationBackend]',
-                                       'label' => 'Backend configuration check',
-                                       'name' => 'checkConfigurationBE',
-                                       'value' => 0,
-                                       'default_value' => 0,
-                                       'comparisonGeneric' => 'EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationBackend'
-                               )
-                       ),
-                       array(
-                               array(
-                                       'cat' => 'basic',
-                                       'subcat_name' => 'enable',
-                                       'subcat' => 'a/enable/z',
-                                       'type' => 'user[EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->buildHashMethodSelectorFE]',
-                                       'label' => 'Hashing method for the frontend: Defines salted hashing method to use. Choose "Portable PHP password hashing" to stay compatible with other CMS (e.g. Drupal, Wordpress). Choose "MD5 salted hashing" to reuse TYPO3 passwords for OS level authentication (other servers could use TYPO3 passwords). Choose "Blowfish salted hashing" for advanced security to reuse passwords on OS level (Blowfish might not be supported on your system TODO).',
-                                       'name' => 'FE.saltedPWHashingMethod',
-                                       'value' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\PhpassSalt',
-                                       'default_value' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\PhpassSalt',
-                                       'comparisonGeneric' => 'EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->buildHashMethodSelectorFE'
-                               )
-                       )
-               );
-       }
-
-       /**
-        * @test
-        * @dataProvider extractInformationForConfigFieldsOfTypeUserAddsGenericAndTypeInformationDataProvider
-        * @param $configurationOption
-        * @return void
-        */
-       public function extractInformationForConfigFieldsOfTypeUserAddsGenericAndTypeInformation($configurationOption) {
-               $configurationOptionModified = $this->configurationItemRepository->extractInformationForConfigFieldsOfTypeUser($configurationOption);
-               $this->assertEquals('user', $configurationOptionModified['type']);
-               $this->assertEquals($configurationOption['comparisonGeneric'], $configurationOptionModified['generic']);
-       }
-
-       /**
-        * @test
-        * @return void
-        */
-       public function extractInformationForConfigFieldsOfTypeOptionsAddsGenericTypeAndLabelInformation() {
-               $option = array(
-                       'cat' => 'basic',
-                       'subcat_name' => 'enable',
-                       'subcat' => 'a/enable/100z',
-                       'type' => 'options[Minimal (Most features disabled. Administrator needs to enable them using TypoScript. For advanced administrators only.),Typical (Most commonly used features are enabled. Select this option if you are unsure which one to use.),Demo (Show-off configuration. Includes pre-configured styles. Not for production environments.)]',
-                       'label' => 'Default configuration settings',
-                       'name' => 'defaultConfiguration',
-                       'value' => 'Typical (Most commonly used features are enabled. Select this option if you are unsure which one to use.)',
-                       'default_value' => 'Typical (Most commonly used features are enabled. Select this option if you are unsure which one to use.)',
-                       'genericComparisonValue' => array(
-                               'Minimal (Most features disabled. Administrator needs to enable them using TypoScript. For advanced administrators only.)' => 'Minimal (Most features disabled. Administrator needs to enable them using TypoScript. For advanced administrators only.)',
-                               'Typical (Most commonly used features are enabled. Select this option if you are unsure which one to use.)' => 'Typical (Most commonly used features are enabled. Select this option if you are unsure which one to use.)',
-                               'Demo (Show-off configuration. Includes pre-configured styles. Not for production environments.)' => 'Demo (Show-off configuration. Includes pre-configured styles. Not for production environments.)'
-                       ),
-                       'typeComparisonValue' => 'options'
-               );
-               $optionModified = $this->configurationItemRepository->extractInformationForConfigFieldsOfTypeOptions($option);
-               $this->assertArrayHasKey('generic', $optionModified);
-               $this->assertArrayHasKey('type', $optionModified);
-               $this->assertArrayHasKey('label', $optionModified);
-               $this->assertEquals($option['genericComparisonValue'], $optionModified['generic']);
-               $this->assertEquals($option['typeComparisonValue'], $optionModified['type']);
-       }
-
-       /**
-        * @test
-        * @return void
-        */
-       public function mergeWithExistingConfigurationOverwritesDefaultKeysWithCurrent() {
-               $backupExtConf = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'];
-               $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['testextensionkey'] = serialize(array(
-                       'FE.' => array(
-                               'enabled' => '1',
-                               'saltedPWHashingMethod' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\SaltInterface_sha1'
-                       ),
-                       'CLI.' => array(
-                               'enabled' => '0'
-                       )
-               ));
-               $defaultConfiguration = array(
-                       'FE.enabled' => array(
-                               'value' => '0'
-                       ),
-                       'FE.saltedPWHashingMethod' => array(
-                               'value' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\Md5Salt'
-                       ),
-                       'BE.enabled' => array(
-                               'value' => '1'
-                       ),
-                       'BE.saltedPWHashingMethod' => array(
-                               'value' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\Md5Salt'
-                       )
-               );
-               $expectedResult = array(
-                       'FE.enabled' => array(
-                               'value' => '1'
-                       ),
-                       'FE.saltedPWHashingMethod' => array(
-                               'value' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\SaltInterface_sha1'
-                       ),
-                       'BE.enabled' => array(
-                               'value' => '1'
-                       ),
-                       'BE.saltedPWHashingMethod' => array(
-                               'value' => 'TYPO3\\CMS\\Saltedpasswords\\Salt\\Md5Salt'
-                       ),
-                       'CLI.enabled' => array(
-                               'value' => '0'
-                       )
-               );
-               $result = $this->configurationItemRepository->mergeWithExistingConfiguration($defaultConfiguration, array('key' => 'testextensionkey'));
-               $this->assertEquals($expectedResult, $result);
-               $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'] = $backupExtConf;
-       }
-
-       /**
-        * @return array
-        */
-       public function createArrayFromConstantsCreatesAnArrayWithMetaInformationDataProvider() {
-               return array(
-                       'demo data from salted passwords' => array(
-                               '
-# cat=basic/enable; type=user[EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationFrontend]; label=Frontend configuration check
-checkConfigurationFE=0
-
-# cat=advancedBackend; type=boolean; label=Force salted passwords: Enforce usage of SaltedPasswords. Old MD5 hashed passwords will stop working.
-BE.forceSalted = 0
-
-TSConstantEditor.advancedbackend {
-  description = <span style="background:red; padding:1px 2px; color:#fff; font-weight:bold;">1</span> Install tool has hardcoded md5 hashing, enabling this setting will prevent use of a install-tool-created BE user.<br />Currently same is for changin password with user setup module unless you use pending patch!
-                       1=BE.forceSalted
-}',
-                               array(
-                                       'checkConfigurationFE' => array(
-                                               'cat' => 'basic',
-                                               'subcat_name' => 'enable',
-                                               'subcat' => 'a/enable/z',
-                                               'type' => 'user[EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationFrontend]',
-                                               'label' => 'Frontend configuration check',
-                                               'name' => 'checkConfigurationFE',
-                                               'value' => '0',
-                                               'default_value' => '0'
-                                       ),
-                                       'BE.forceSalted' => array(
-                                               'cat' => 'advancedbackend',
-                                               'subcat' => 'x/z',
-                                               'type' => 'boolean',
-                                               'label' => 'Force salted passwords: Enforce usage of SaltedPasswords. Old MD5 hashed passwords will stop working.',
-                                               'name' => 'BE.forceSalted',
-                                               'value' => '0',
-                                               'default_value' => '0'
-                                       )
-                               ),
-                               array(
-                                       'advancedbackend.' => array(
-                                               'description' => '<span style="background:red; padding:1px 2px; color:#fff; font-weight:bold;">1</span> Install tool has hardcoded md5 hashing, enabling this setting will prevent use of a install-tool-created BE user.<br />Currently same is for changin password with user setup module unless you use pending patch!',
-                                               1 => 'BE.forceSalted'
-                                       )
-                               ),
-                               array(
-                                       'checkConfigurationFE' => array(
-                                               'cat' => 'basic',
-                                               'subcat_name' => 'enable',
-                                               'subcat' => 'a/enable/z',
-                                               'type' => 'user[EXT:saltedpasswords/classes/class.tx_saltedpasswords_emconfhelper.php:TYPO3\\CMS\\Saltedpasswords\\Utility\\ExtensionManagerConfigurationUtility->checkConfigurationFrontend]',
-                                               'label' => 'Frontend configuration check',
-                                               'name' => 'checkConfigurationFE',
-                                               'value' => '0',
-                                               'default_value' => '0'
-                                       ),
-                                       'BE.forceSalted' => array(
-                                               'cat' => 'advancedbackend',
-                                               'subcat' => 'x/z',
-                                               'type' => 'boolean',
-                                               'label' => 'Force salted passwords: Enforce usage of SaltedPasswords. Old MD5 hashed passwords will stop working.',
-                                               'name' => 'BE.forceSalted',
-                                               'value' => '0',
-                                               'default_value' => '0',
-                                               'highlight' => 1
-                                       ),
-                                       '__meta__' => array(
-                                               'advancedbackend' => array(
-                                                       'highlightText' => '<span style="background:red; padding:1px 2px; color:#fff; font-weight:bold;">1</span> Install tool has hardcoded md5 hashing, enabling this setting will prevent use of a install-tool-created BE user.<br />Currently same is for changin password with user setup module unless you use pending patch!'
-                                               )
-                                       )
-                               )
-                       )
-               );
-       }
-
-       /**
-        * @test
-        * @dataProvider createArrayFromConstantsCreatesAnArrayWithMetaInformationDataProvider
-        * @param $raw
-        * @param $constants
-        * @param $setupTsConstantEditor
-        * @param $expected
-        * @return void
-        */
-       public function createArrayFromConstantsCreatesAnArrayWithMetaInformation($raw, $constants, $setupTsConstantEditor, $expected) {
-               $tsStyleConfig = $this->getMock('TYPO3\\CMS\\Core\\TypoScript\\ConfigurationForm');
-               $configurationItemRepositoryMock = $this->getMock('TYPO3\\CMS\\Extensionmanager\\Domain\\Repository\\ConfigurationItemRepository', array('getT3libTsStyleConfig'));
-               $configurationItemRepositoryMock->expects($this->once())->method('getT3libTsStyleConfig')->will($this->returnValue($tsStyleConfig));
-               $tsStyleConfig->expects($this->once())->method('ext_initTSstyleConfig')->with($raw, $this->anything(), $this->anything(), $this->anything())->will($this->returnValue($constants));
-               $tsStyleConfig->setup['constants']['TSConstantEditor.'] = $setupTsConstantEditor;
-               $constantsResult = $configurationItemRepositoryMock->createArrayFromConstants($raw, array());
-               $this->assertEquals($expected, $constantsResult);
-       }
-
-}
-
-
-?>
\ No newline at end of file
index 197c7ce..5dc60dd 100644 (file)
@@ -23,10 +23,8 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Service;
  *
  * This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
- * Testcase for the Tx_Extensionmanager_Service_ManagementServiceTest
- * class in the TYPO3 Core.
- *
  * @package Extension Manager
  * @subpackage Tests
  */
index 7d1aff9..5038178 100644 (file)
@@ -23,9 +23,8 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Utility;
  *
  * This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
- * Testcase for the Tx_Extensionmanager_Utility_Configuration class in the TYPO3 Core.
- *
  * @package Extension Manager
  * @subpackage Tests
  */
index 97c6796..c09d770 100644 (file)
@@ -23,9 +23,8 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Utility;
  *
  * This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
- * Testcase for the Tx_Extensionmanager_Utility_List class in the TYPO3 Core.
- *
  * @package Extension Manager
  * @subpackage Tests
  */
index 41bda73..3e36bd6 100644 (file)
@@ -23,9 +23,8 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Utility;
  *
  * This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
- * Testcase for the Tx_Extensionmanager_Utility_EmConf class in the TYPO3 Core.
- *
  * @package Extension Manager
  * @subpackage Tests
  */
index 5f542ab..6c94f44 100644 (file)
@@ -23,9 +23,8 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Utility;
  *
  * This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
- * Testcase for the Tx_Extensionmanager_Utility_List class in the TYPO3 Core.
- *
  * @package Extension Manager
  * @subpackage Tests
  */
index 5eb08bb..4ef6aca 100644 (file)
@@ -23,9 +23,8 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Utility;
  *
  * This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
- * Testcase for the Tx_Extensionmanager_Utility_List class in the TYPO3 Core.
- *
  * @package Extension Manager
  * @subpackage Tests
  */
index 1c4c548..d8d29bd 100644 (file)
@@ -23,9 +23,8 @@ namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Utility;
  *
  * This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
- * Testcase for the Tx_Extensionmanager_Utility_List class in the TYPO3 Core.
- *
  * @package Extension Manager
  * @subpackage Tests
  */
diff --git a/typo3/sysext/extensionmanager/Tests/Utility/ConfigurationTest.php b/typo3/sysext/extensionmanager/Tests/Utility/ConfigurationTest.php
deleted file mode 100644 (file)
index 3f61ad1..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * @deprecated since 6.0, the classname Tx_Extensionmanager_Utility_ConfigurationTest and this file is obsolete
- * and will be removed by 7.0. The class was renamed and is now located at:
- * typo3/sysext/extensionmanager/Tests/Unit/Utility/ConfigurationUtilityTest.php
- */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Tests/Unit/Utility/ConfigurationUtilityTest.php';
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extensionmanager/Tests/Utility/DependencyTest.php b/typo3/sysext/extensionmanager/Tests/Utility/DependencyTest.php
deleted file mode 100644 (file)
index 5357c7b..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * @deprecated since 6.0, the classname Tx_Extensionmanager_Utility_DependencyTest and this file is obsolete
- * and will be removed by 7.0. The class was renamed and is now located at:
- * typo3/sysext/extensionmanager/Tests/Unit/Utility/DependencyUtilityTest.php
- */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Tests/Unit/Utility/DependencyUtilityTest.php';
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extensionmanager/Tests/Utility/EmConfTest.php b/typo3/sysext/extensionmanager/Tests/Utility/EmConfTest.php
deleted file mode 100644 (file)
index 1716b97..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * @deprecated since 6.0, the classname Tx_Extensionmanager_Utility_EmConfTest and this file is obsolete
- * and will be removed by 7.0. The class was renamed and is now located at:
- * typo3/sysext/extensionmanager/Tests/Unit/Utility/EmConfUtilityTest.php
- */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Tests/Unit/Utility/EmConfUtilityTest.php';
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extensionmanager/Tests/Utility/FilehandlingTest.php b/typo3/sysext/extensionmanager/Tests/Utility/FilehandlingTest.php
deleted file mode 100644 (file)
index 5b25232..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * @deprecated since 6.0, the classname Tx_Extensionmanager_Utility_FileHandlingTest and this file is obsolete
- * and will be removed by 7.0. The class was renamed and is now located at:
- * typo3/sysext/extensionmanager/Tests/Unit/Utility/FileHandlingUtilityTest.php
- */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Tests/Unit/Utility/FileHandlingUtilityTest.php';
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extensionmanager/Tests/Utility/InstallTest.php b/typo3/sysext/extensionmanager/Tests/Utility/InstallTest.php
deleted file mode 100644 (file)
index 6293c20..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * @deprecated since 6.0, the classname Tx_Extensionmanager_Utility_InstallTest and this file is obsolete
- * and will be removed by 7.0. The class was renamed and is now located at:
- * typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php
- */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Tests/Unit/Utility/InstallUtilityTest.php';
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extensionmanager/Tests/Utility/ListTest.php b/typo3/sysext/extensionmanager/Tests/Utility/ListTest.php
deleted file mode 100644 (file)
index e64c018..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * @deprecated since 6.0, the classname Tx_Extensionmanager_Utility_ListTest and this file is obsolete
- * and will be removed by 7.0. The class was renamed and is now located at:
- * typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php
- */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Tests/Unit/Utility/ListUtilityTest.php';
-?>
\ No newline at end of file