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