Skip to content
Snippets Groups Projects
Commit fcf132f5 authored by Anja Leichsenring's avatar Anja Leichsenring Committed by Christian Kuhn
Browse files

[TASK] Remove skipped test in DisjunctionValidatorTest

The functionality guarded by the test does not apply anymore.
After the test has been skipped since a long time already,
it is safe to just remove it.

Change-Id: I7757b57e7f7424d2631f67b736d927f525e01f0b
Resolves: #85625
Releases: master
Reviewed-on: https://review.typo3.org/57664


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent b0499f25
Branches
Tags
No related merge requests found
......@@ -26,27 +26,6 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator;
*/
class DisjunctionValidatorTest extends \TYPO3\TestingFramework\Core\Unit\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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment