setUpBackendUserFromFixture(1); $GLOBALS['LANG'] = GeneralUtility::makeInstance(LanguageService::class); $formEngineTestService = GeneralUtility::makeInstance(FormTestService::class); $formResult = $formEngineTestService->createNewRecordForm('sys_collection'); foreach (static::$collectionFields as $expectedField) { self::assertNotFalse( $formEngineTestService->formHtmlContainsField($expectedField, $formResult['html']), 'The field ' . $expectedField . ' is not in the form HTML' ); } } }