20 use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
34 'category' => [
'category'],
40 'static' => [
'files'],
48 $this->setUpBackendUserFromFixture(1);
49 $GLOBALS[
'LANG'] = GeneralUtility::makeInstance(LanguageService::class);
51 $formEngineTestService = GeneralUtility::makeInstance(FormTestService::class);
53 foreach (static::$fileCollectionTypeFields as $type => $additionalFields) {
54 $formResult = $formEngineTestService->createNewRecordForm(
'sys_file_collection', [
'type' => $type]);
55 $expectedFields = array_merge(static::$fileCollectionFields, $additionalFields);
56 foreach ($expectedFields as $expectedField) {
57 $this->assertNotFalse(
58 $formEngineTestService->formHtmlContainsField($expectedField, $formResult[
'html']),
59 'The field ' . $expectedField .
' is not in the form HTML'