importCSVDataSet(__DIR__ . '/../Fixtures/BackendUser.csv'); $this->setUpBackendUser(1); $GLOBALS['LANG'] = GeneralUtility::makeInstance(LanguageServiceFactory::class)->create('en_EN'); $formEngineTestService = new FormTestService(); $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' ); } } }