[TASK] Use name-resolution instead of strings where possible: 5 58/34858/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 1 Dec 2014 12:49:18 +0000 (13:49 +0100)
committerFrank Nägler <typo3@naegler.net>
Fri, 5 Dec 2014 20:27:34 +0000 (21:27 +0100)
(part for EXT:form)

Use name-resolution with ...::class instead of strings where
possible.
(needs PHP 5.5, which is meanwhile required for master)

Change-set Iedbb896607adddce2b23ab67f990fa2296c0d1bb
first introduced usage of ::class in master. We now add it
in various more places.

Change-Id: Ia97da7be3e8e0b0e21c1380620e0ce4d6450f1c0
Resolves: #63477
Releases: master
Reviewed-on: http://review.typo3.org/34858
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
30 files changed:
typo3/sysext/form/Classes/Domain/Model/Element/AbstractElement.php
typo3/sysext/form/Classes/PostProcess/MailPostProcessor.php
typo3/sysext/form/Classes/Validation/AlphabeticValidator.php
typo3/sysext/form/Classes/Validation/AlphanumericValidator.php
typo3/sysext/form/Classes/Validation/DigitValidator.php
typo3/sysext/form/Classes/View/Form/FormView.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
typo3/sysext/form/Tests/Unit/View/Mail/Html/Element/AbstractElementViewTest.php

index 6270c53..4c9a31a 100644 (file)
@@ -348,7 +348,7 @@ abstract class AbstractElement {
         * @return void
         */
        protected function createAttributes() {
-               $className = 'TYPO3\\CMS\\Form\\Domain\\Model\\Attribute\\AttributesAttribute';
+               $className = \TYPO3\CMS\Form\Domain\Model\Attribute\AttributesAttribute::class;
                $this->attributes = GeneralUtility::makeInstance($className, $this->elementId);
        }
 
@@ -453,7 +453,7 @@ abstract class AbstractElement {
         * @return void
         */
        protected function createAdditional() {
-               $className = 'TYPO3\\CMS\\Form\\Domain\\Model\\Additional\\AdditionalAdditionalElement';
+               $className = \TYPO3\CMS\Form\Domain\Model\Additional\AdditionalAdditionalElement::class;
                $this->additional = GeneralUtility::makeInstance($className);
        }
 
index aff1a52..6d65b89 100644 (file)
@@ -333,11 +333,11 @@ class MailPostProcessor implements \TYPO3\CMS\Form\PostProcess\PostProcessorInte
        protected function addAttachmentsFromElements($elements, $submittedValues) {
                /** @var $element \TYPO3\CMS\Form\Domain\Model\Element\AbstractElement */
                foreach ($elements as $element) {
-                       if (is_a($element, 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\ContainerElement')) {
+                       if (is_a($element, \TYPO3\CMS\Form\Domain\Model\Element\ContainerElement::class)) {
                                $this->addAttachmentsFromElements($element->getElements(), $submittedValues);
                                continue;
                        }
-                       if (is_a($element, 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\FileuploadElement')) {
+                       if (is_a($element, \TYPO3\CMS\Form\Domain\Model\Element\FileuploadElement::class)) {
                                $elementName = $element->getName();
                                if (is_array($submittedValues[$elementName]) && isset($submittedValues[$elementName]['tempFilename'])) {
                                        $filename = $submittedValues[$elementName]['tempFilename'];
index ed63979..faaa8df 100644 (file)
@@ -55,7 +55,7 @@ class AlphabeticValidator extends \TYPO3\CMS\Form\Validation\AbstractValidator {
                if ($this->requestHandler->has($this->fieldName)) {
                        $value = $this->requestHandler->getByMethod($this->fieldName);
                        if ($this->filter === NULL) {
-                               $className = 'TYPO3\\CMS\\Form\\Filter\\AlphabeticFilter';
+                               $className = \TYPO3\CMS\Form\Filter\AlphabeticFilter::class;
                                $this->filter = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($className);
                        }
                        $this->filter->setAllowWhiteSpace($this->allowWhiteSpace);
index a580e93..762f6d2 100644 (file)
@@ -53,7 +53,7 @@ class AlphanumericValidator extends \TYPO3\CMS\Form\Validation\AbstractValidator
                if ($this->requestHandler->has($this->fieldName)) {
                        $value = $this->requestHandler->getByMethod($this->fieldName);
                        if ($this->filter === NULL) {
-                               $className = 'TYPO3\\CMS\\Form\\Filter\\AlphanumericFilter';
+                               $className = \TYPO3\CMS\Form\Filter\AlphanumericFilter::class;
                                $this->filter = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($className);
                        }
                        $this->filter->setAllowWhiteSpace($this->allowWhiteSpace);
index 6701d31..019ef6e 100644 (file)
@@ -37,7 +37,7 @@ class DigitValidator extends \TYPO3\CMS\Form\Validation\AbstractValidator {
                if ($this->requestHandler->has($this->fieldName)) {
                        $value = $this->requestHandler->getByMethod($this->fieldName);
                        if ($this->filter === NULL) {
-                               $className = 'TYPO3\\CMS\\Form\\Filter\\DigitFilter';
+                               $className = \TYPO3\CMS\Form\Filter\DigitFilter::class;
                                $this->filter = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($className);
                        }
                        if ($this->filter->filter($value) !== $value) {
index 8e37fea..0af2925 100644 (file)
@@ -24,7 +24,7 @@ class FormView extends \TYPO3\CMS\Form\View\Form\Element\ContainerElementView {
        /**
         * @var string
         */
-       protected $expectedModelName = 'TYPO3\\CMS\\Form\\Domain\\Model\\Form';
+       protected $expectedModelName = \TYPO3\CMS\Form\Domain\Model\Form::class;
 
        /**
         * Default layout of this object
index cee7222..a7af7db 100644 (file)
@@ -31,7 +31,7 @@ class MailPostProcessorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        public function setUp() {
                $this->mailPostProcessor = $this->getAccessibleMock(
-                       'TYPO3\CMS\Form\PostProcess\MailPostProcessor',
+                       \TYPO3\CMS\Form\PostProcess\MailPostProcessor::class,
                        array('dummy'),
                        array(),
                        '',
index 42e7bcc..7184d19 100644 (file)
@@ -27,9 +27,9 @@ class PostProcessorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         * Set up
         */
        public function setUp() {
-               $form = $this->getMock('TYPO3\\CMS\\Form\\Domain\\Model\\Form', array(), array(), '', FALSE);
+               $form = $this->getMock(\TYPO3\CMS\Form\Domain\Model\Form::class, array(), array(), '', FALSE);
                $this->fixture = $this->getMock(
-                       'TYPO3\CMS\Form\PostProcess\PostProcessor',
+                       \TYPO3\CMS\Form\PostProcess\PostProcessor::class,
                        array('sortTypoScriptKeyList'),
                        array($form, array())
                );
index 55f0247..7ab97bf 100644 (file)
@@ -34,7 +34,7 @@ class AlphabeticValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\AlphabeticValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\AlphabeticValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        /**
index 2314dc5..11f6417 100644 (file)
@@ -30,7 +30,7 @@ class AlphanumericValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\AlphanumericValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\AlphanumericValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validDataProviderWithoutWhitespace() {
index e3142e9..a02bc20 100644 (file)
@@ -31,7 +31,7 @@ class BetweenValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\BetweenValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\BetweenValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validNonInclusiveDataProvider() {
index 4e9b834..529074c 100644 (file)
@@ -30,7 +30,7 @@ class DateValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\DateValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\DateValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validDateProvider() {
index a16d0b8..9f82f54 100644 (file)
@@ -30,7 +30,7 @@ class DigitValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\DigitValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\DigitValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validDigitProvider() {
index 8778d9f..cfa02c7 100644 (file)
@@ -30,7 +30,7 @@ class EmailValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\EmailValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\EmailValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validEmailProvider() {
index 38bdc1c..45c3c7f 100644 (file)
@@ -30,7 +30,7 @@ class EqualsValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\EqualsValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\EqualsValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function invalidPairProvider() {
index 99a5ab4..96b775d 100644 (file)
@@ -30,7 +30,7 @@ class FileAllowedTypesValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\FileAllowedTypesValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\FileAllowedTypesValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validTypesProvider() {
index 8cb813b..95da104 100644 (file)
@@ -30,7 +30,7 @@ class FileMaximumSizeValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\FileMaximumSizeValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\FileMaximumSizeValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validSizesProvider() {
index f982005..64f4c08 100644 (file)
@@ -31,7 +31,7 @@ class FileMinimumSizeValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\FileMinimumSizeValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\FileMinimumSizeValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validSizesProvider() {
index 13dc8ec..d691ce3 100644 (file)
@@ -30,7 +30,7 @@ class FloatValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\FloatValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\FloatValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validFloatProvider() {
index e878cd1..5f9d81d 100644 (file)
@@ -31,7 +31,7 @@ class GreaterThanValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\GreaterThanValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\GreaterThanValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validNumberProvider() {
index 268b590..341422e 100644 (file)
@@ -33,7 +33,7 @@ class Helper extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        public function getRequestHandler(array $data) {
                $this->mockData = $data;
 
-               $requestHandlerMock = $this->getMock('TYPO3\\CMS\\Form\\Request', array('has', 'getByMethod'));
+               $requestHandlerMock = $this->getMock(\TYPO3\CMS\Form\Request::class, array('has', 'getByMethod'));
                $requestHandlerMock->expects($this->any())->method('has')->will($this->returnCallback(array($this, 'has')));
                $requestHandlerMock->expects($this->any())->method('getByMethod')
                        ->will($this->returnCallback(array($this, 'getByMethod')));
index d21bdf6..67b2d46 100644 (file)
@@ -30,7 +30,7 @@ class InArrayValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\InArrayValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\InArrayValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validArrayProvider() {
index aab8caf..d878fc3 100644 (file)
@@ -30,7 +30,7 @@ class IntegerValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\IntegerValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\IntegerValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validIntegerProvider() {
index 8472141..b52f75c 100644 (file)
@@ -30,7 +30,7 @@ class IpValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\IpValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\IpValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validIpv4Provider() {
index 4a2f06c..69e8303 100644 (file)
@@ -33,12 +33,12 @@ class LengthValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $charsetConverterMock = $this->getMock('TYPO3\\CMS\\Core\\Charset\\CharsetConverter', array(), array(), '', FALSE);
+               $charsetConverterMock = $this->getMock(\TYPO3\CMS\Core\Charset\CharsetConverter::class, array(), array(), '', FALSE);
                $charsetConverterMock->expects($this->any())->method('strlen')
                        ->will($this->returnCallback(function ($charset, $value) {
                                return mb_strlen($value, $charset);
                        }));
-               $this->subject = $this->getAccessibleMock('TYPO3\\CMS\\Form\\Validation\\LengthValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getAccessibleMock(\TYPO3\CMS\Form\Validation\LengthValidator::class, array('dummy'), array(), '', FALSE);
                $this->subject->_set('charsetConverter', $charsetConverterMock);
        }
 
index 8853243..fbac72c 100644 (file)
@@ -30,7 +30,7 @@ class LessThanValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\LessthanValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\LessthanValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validValueProvider() {
index a40de18..7f2de96 100644 (file)
@@ -30,7 +30,7 @@ class RegExpValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\RegExpValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\RegExpValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validDataProvider() {
index f47b2b9..24d64d0 100644 (file)
@@ -30,7 +30,7 @@ class RequiredValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\RequiredValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\RequiredValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validDataProvider() {
index 1c4a88b..4afbb92 100644 (file)
@@ -30,7 +30,7 @@ class UriValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        public function setUp() {
                $this->helper = new \TYPO3\CMS\Form\Tests\Unit\Validation\Helper();
-               $this->subject = $this->getMock('TYPO3\\CMS\\Form\\Validation\\UriValidator', array('dummy'), array(), '', FALSE);
+               $this->subject = $this->getMock(\TYPO3\CMS\Form\Validation\UriValidator::class, array('dummy'), array(), '', FALSE);
        }
 
        public function validDataProvider() {
index 1f74b95..d58f4c1 100644 (file)
@@ -25,7 +25,7 @@ class AbstractElementViewTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         * @test
         */
        public function getInputValueDoesNotHtmlSpecialCharBr() {
-               $model = $this->getMock('TYPO3\\CMS\\Form\\Domain\\Model\\Element\\AbstractElement');
+               $model = $this->getMock(\TYPO3\CMS\Form\Domain\Model\Element\AbstractElement::class);
                $model
                        ->expects($this->once())
                        ->method('getAttributeValue')
@@ -34,7 +34,7 @@ class AbstractElementViewTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
                /** @var $fixture \TYPO3\CMS\Form\View\Mail\Html\Element\AbstractElementView|PHPUnit_Framework_MockObject_MockObject */
                $fixture = $this->getMock(
-                       'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\AbstractElementView',
+                       \TYPO3\CMS\Form\View\Mail\Html\Element\AbstractElementView::class,
                        array('dummy'),
                        array($model)
                );