‪TYPO3CMS  10.4
TaskGroupVisibleFieldsTest.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
21 use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
22 
23 class ‪TaskGroupVisibleFieldsTest extends FunctionalTestCase
24 {
28  protected ‪$coreExtensionsToLoad = ['scheduler'];
29 
33  protected static ‪$taskGroupFields = [
34  'hidden',
35  'groupName',
36  'description',
37  ];
38 
43  {
44  $this->setUpBackendUserFromFixture(1);
45  ‪$GLOBALS['LANG'] = GeneralUtility::makeInstance(LanguageService::class);
46 
47  $formEngineTestService = GeneralUtility::makeInstance(FormTestService::class);
48  $formResult = $formEngineTestService->createNewRecordForm('tx_scheduler_task_group');
49 
50  foreach (static::$taskGroupFields as $expectedField) {
51  self::assertNotFalse(
52  $formEngineTestService->formHtmlContainsField($expectedField, $formResult['html']),
53  'The field ' . $expectedField . ' is not in the form HTML'
54  );
55  }
56  }
57 }
‪TYPO3\CMS\Scheduler\Tests\Functional\Tca\TaskGroupVisibleFieldsTest
Definition: TaskGroupVisibleFieldsTest.php:24
‪TYPO3\CMS\Scheduler\Tests\Functional\Tca\TaskGroupVisibleFieldsTest\taskGroupFormContainsExpectedFields
‪taskGroupFormContainsExpectedFields()
Definition: TaskGroupVisibleFieldsTest.php:40
‪TYPO3\CMS\Scheduler\Tests\Functional\Tca\TaskGroupVisibleFieldsTest\$coreExtensionsToLoad
‪array $coreExtensionsToLoad
Definition: TaskGroupVisibleFieldsTest.php:27
‪TYPO3\CMS\Scheduler\Tests\Functional\Tca
Definition: TaskGroupVisibleFieldsTest.php:16
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Backend\Tests\Functional\Form\FormTestService
Definition: FormTestService.php:27
‪TYPO3\CMS\Core\Localization\LanguageService
Definition: LanguageService.php:42
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Scheduler\Tests\Functional\Tca\TaskGroupVisibleFieldsTest\$taskGroupFields
‪static array $taskGroupFields
Definition: TaskGroupVisibleFieldsTest.php:31