[TASK] Use name-resolution instead of strings where possible: 3
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Validation / Validator / DisjunctionValidatorTest.php
index 7400c26..e13c0fe 100644 (file)
@@ -33,11 +33,11 @@ class DisjunctionValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        public function allValidatorsInTheDisjunctionAreCalledEvenIfOneReturnsNoError() {
                $this->markTestSkipped('Needs a bugfix of Flow first.');
                $validatorDisjunction = new \TYPO3\CMS\Extbase\Validation\Validator\DisjunctionValidator(array());
-               $validatorObject = $this->getMock('TYPO3\\CMS\\Extbase\\Validation\\Validator\\ValidatorInterface', array('validate', 'getOptions'));
+               $validatorObject = $this->getMock(\TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface::class, array('validate', 'getOptions'));
                $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->getMock('TYPO3\\CMS\\Extbase\\Validation\\Validator\\ValidatorInterface', array('validate', 'getOptions'));
+               $secondValidatorObject = $this->getMock(\TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface::class, array('validate', 'getOptions'));
                $secondValidatorObject->expects($this->exactly(1))->method('validate')->will($this->returnValue($errors));
                $validatorDisjunction->addValidator($validatorObject);
                $validatorDisjunction->addValidator($secondValidatorObject);
@@ -50,11 +50,11 @@ class DisjunctionValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        public function validateReturnsNoErrorsIfOneValidatorReturnsNoError() {
                $validatorDisjunction = new \TYPO3\CMS\Extbase\Validation\Validator\DisjunctionValidator(array());
-               $validatorObject = $this->getMock('TYPO3\\CMS\\Extbase\\Validation\\Validator\\ValidatorInterface', array('validate', 'getOptions'));
+               $validatorObject = $this->getMock(\TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface::class, array('validate', 'getOptions'));
                $validatorObject->expects($this->any())->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->getMock('TYPO3\\CMS\\Extbase\\Validation\\Validator\\ValidatorInterface', array('validate', 'getOptions'));
+               $secondValidatorObject = $this->getMock(\TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface::class, array('validate', 'getOptions'));
                $secondValidatorObject->expects($this->any())->method('validate')->will($this->returnValue($errors));
                $validatorDisjunction->addValidator($validatorObject);
                $validatorDisjunction->addValidator($secondValidatorObject);
@@ -71,11 +71,11 @@ class DisjunctionValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $error2 = new \TYPO3\CMS\Extbase\Error\Error('Error2', 123);
                $errors1 = new \TYPO3\CMS\Extbase\Error\Result();
                $errors1->addError($error1);
-               $validatorObject = $this->getMock('TYPO3\\CMS\\Extbase\\Validation\\Validator\\ValidatorInterface', array('validate', 'getOptions'));
+               $validatorObject = $this->getMock(\TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface::class, array('validate', 'getOptions'));
                $validatorObject->expects($this->any())->method('validate')->will($this->returnValue($errors1));
                $errors2 = new \TYPO3\CMS\Extbase\Error\Result();
                $errors2->addError($error2);
-               $secondValidatorObject = $this->getMock('TYPO3\\CMS\\Extbase\\Validation\\Validator\\ValidatorInterface', array('validate', 'getOptions'));
+               $secondValidatorObject = $this->getMock(\TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface::class, array('validate', 'getOptions'));
                $secondValidatorObject->expects($this->any())->method('validate')->will($this->returnValue($errors2));
                $validatorDisjunction->addValidator($validatorObject);
                $validatorDisjunction->addValidator($secondValidatorObject);