[TASK] Shorten the extend class in all unit tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Validation / Validator / DisjunctionValidatorTest.php
index 813d970..9fb409a 100644 (file)
@@ -21,32 +21,13 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
+use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
+
 /**
  * Test case
  */
-class DisjunctionValidatorTest extends \TYPO3\Components\TestingFramework\Core\UnitTestCase
+class DisjunctionValidatorTest extends UnitTestCase
 {
-    /**
-     * @test
-     */
-    public function allValidatorsInTheDisjunctionAreCalledEvenIfOneReturnsNoError()
-    {
-        $this->markTestSkipped('Needs a bugfix of Flow first.');
-        $validatorDisjunction = new \TYPO3\CMS\Extbase\Validation\Validator\DisjunctionValidator([]);
-        $validatorObject = $this->getMockBuilder(\TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface::class)
-            ->setMethods(['validate', 'getOptions'])
-            ->getMock();
-        $validatorObject->expects($this->once())->method('validate')->will($this->returnValue(new \TYPO3\CMS\Extbase\Error\Result()));
-        $errors = new \TYPO3\CMS\Extbase\Error\Result();
-        $errors->addError(new \TYPO3\CMS\Extbase\Error\Error('Error', 123));
-        $secondValidatorObject = $this->getMockBuilder(\TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface::class)
-            ->setMethods(['validate', 'getOptions'])
-            ->getMock();
-        $secondValidatorObject->expects($this->exactly(1))->method('validate')->will($this->returnValue($errors));
-        $validatorDisjunction->addValidator($validatorObject);
-        $validatorDisjunction->addValidator($secondValidatorObject);
-        $validatorDisjunction->validate('some subject');
-    }
 
     /**
      * @test