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