[TASK] Tests: Release ext:form tests from exbase base class 28/28428/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 15 Mar 2014 20:31:29 +0000 (21:31 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 15 Mar 2014 21:01:17 +0000 (22:01 +0100)
Change-Id: I7e9f09fa747a07208bf248aa35fdf154cd1fa9c4
Resolves: #56943
Related: #51436
Releases: 6.2
Reviewed-on: https://review.typo3.org/28428
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
24 files changed:
typo3/sysext/form/Tests/Unit/Domain/Factory/TypoScriptFactoryTest.php
typo3/sysext/form/Tests/Unit/PostProcess/MailPostProcessorTest.php
typo3/sysext/form/Tests/Unit/PostProcess/PostProcessorTest.php
typo3/sysext/form/Tests/Unit/Validation/AlphabeticValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/AlphanumericValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/BetweenValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/DateValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/DigitValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/EmailValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/EqualsValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/FileAllowedTypesValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/FileMaximumSizeValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/FileMinimumSizeValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/FloatValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/GreaterThanValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/Helper.php
typo3/sysext/form/Tests/Unit/Validation/InArrayValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/IntegerValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/IpValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/LengthValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/LessThanValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/RegExpValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/RequiredValidatorTest.php
typo3/sysext/form/Tests/Unit/Validation/UriValidatorTest.php

index 1abdcbb..ba8bd17 100644 (file)
@@ -27,18 +27,16 @@ namespace TYPO3\CMS\Form\Tests\Unit\Domain\Factory;
 
 /**
  * Test case for class \TYPO3\CMS\Form\Domain\Factory\TypoScriptFactory
- *
- * @author Stefan Neufeind <info@speedpartner.de>
  */
-class TypoScriptFactoryTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class TypoScriptFactoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
-        * @var TYPO3\CMS\Form\Domain\Factory\TypoScriptFactory
+        * @var \TYPO3\CMS\Form\Domain\Factory\TypoScriptFactory
         */
-       protected $fixture;
+       protected $subject;
 
        public function setUp() {
-               $this->fixture = new \TYPO3\CMS\Form\Domain\Factory\TypoScriptFactory();
+               $this->subject = new \TYPO3\CMS\Form\Domain\Factory\TypoScriptFactory();
        }
 
        /**
@@ -53,7 +51,7 @@ class TypoScriptFactoryTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
                        );
                $inputStdWrapped = 'ABCsomethingDEF';
 
-               $element = $this->fixture->createElement('textline', $input);
+               $element = $this->subject->createElement('textline', $input);
 
                $this->assertSame(
                        $inputStdWrapped,
index 8f67d9d..f168f9a 100644 (file)
@@ -28,7 +28,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\PostProcess;
 /**
  * Test case
  */
-class MailPostProcessorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class MailPostProcessorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\PostProcess\MailPostProcessor
index 18cf14b..02d6ed1 100644 (file)
@@ -26,10 +26,8 @@ namespace TYPO3\CMS\Form\Tests\Unit\PostProcess;
  ***************************************************************/
 /**
  * Testcase for PostProcessor
- *
- * @author Susanne Moog, <typo3@susannemoog.de>
  */
-class PostProcessorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class PostProcessorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Form\PostProcess\PostProcessor
index afb252d..3fb9138 100644 (file)
@@ -28,7 +28,8 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class AlphabeticValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class AlphabeticValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
+
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
         */
index 99d108e..2d468f4 100644 (file)
@@ -27,7 +27,8 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class AlphanumericValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class AlphanumericValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
+
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
         */
index f5287bf..5536603 100644 (file)
@@ -28,7 +28,8 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class BetweenValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class BetweenValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
+
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
         */
index 10dc91f..3a8ed57 100644 (file)
@@ -27,7 +27,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class DateValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class DateValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
index f6258c3..62bdd63 100644 (file)
@@ -27,7 +27,8 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class DigitValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class DigitValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
+
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
         */
index 04b0307..f0958a3 100644 (file)
@@ -27,7 +27,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class EmailValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class EmailValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
index 955a19b..f209b20 100644 (file)
@@ -27,7 +27,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class EqualsValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class EqualsValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
index b641bae..caf3669 100644 (file)
@@ -27,7 +27,8 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class FileAllowedTypesValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class FileAllowedTypesValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
+
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
         */
index f590fcb..cbb7e27 100644 (file)
@@ -27,7 +27,8 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class FileMaximumSizeValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class FileMaximumSizeValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
+
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
         */
index 0b00f1c..79d5262 100644 (file)
@@ -28,7 +28,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class FileMinimumSizeValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class FileMinimumSizeValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
index 79072f4..bdbb8a6 100644 (file)
@@ -27,7 +27,8 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class FloatValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class FloatValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
+
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
         */
index b29f25e..989a5f4 100644 (file)
@@ -28,7 +28,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class GreaterThanValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class GreaterThanValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
index c42c014..134ac18 100644 (file)
@@ -26,10 +26,9 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 
 /**
  * Small helper class to DRY the code.
- *
- * @author Andreas Lappe <a.lappe@kuehlhaus.com>
  */
-class Helper extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class Helper extends \TYPO3\CMS\Core\Tests\UnitTestCase {
+
        /**
         * @var array
         */
index e27c0ef..7c819bc 100644 (file)
@@ -27,7 +27,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class InArrayValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class InArrayValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
index f73a9fe..9432965 100644 (file)
@@ -27,7 +27,8 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class IntegerValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class IntegerValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
+
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
         */
index 92ae815..26e21ba 100644 (file)
@@ -27,7 +27,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class IpValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class IpValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
index f13c7a2..553c73e 100644 (file)
@@ -27,7 +27,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class LengthValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class LengthValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
index 38dc8fa..ea233c4 100644 (file)
@@ -27,7 +27,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class LessThanValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class LessThanValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
index ba16ac1..ff5da1d 100644 (file)
@@ -27,7 +27,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class RegExpValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class RegExpValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
index fda4dbc..364f15b 100644 (file)
@@ -27,7 +27,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class RequiredValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class RequiredValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
index 5eb16aa..0f873b7 100644 (file)
@@ -27,7 +27,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /**
  * Test case
  */
-class UriValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+class UriValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper