20 use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
40 $this->setUpBackendUserFromFixture(1);
41 $GLOBALS[
'LANG'] = GeneralUtility::makeInstance(LanguageService::class);
43 $formEngineTestService = GeneralUtility::makeInstance(FormTestService::class);
44 $formResult = $formEngineTestService->createNewRecordForm(
'sys_category');
46 foreach (static::$categoryFields as $expectedField) {
47 $this->assertNotFalse(
48 $formEngineTestService->formHtmlContainsField($expectedField, $formResult[
'html']),
49 'The field ' . $expectedField .
' is not in the form HTML'