74 calls to TestFileCreationTrait::getTestFiles()
- AccessTest::testFileAccess in core/
modules/ file/ tests/ src/ Kernel/ AccessTest.php - Tests 'update' and 'delete' access to file entities.
- AjaxFileManagedMultipleTest::testMultipleFilesUpload in core/
modules/ file/ tests/ src/ FunctionalJavascript/ AjaxFileManagedMultipleTest.php - Tests if managed file form element works well with multiple files upload.
- ClaroModalDisplayTest::testModalAddAnother in core/
tests/ Drupal/ FunctionalJavascriptTests/ Theme/ ClaroModalDisplayTest.php - Tests the position f "add another" button in dialogs.
- CommentPreviewTest::testCommentPreview in core/
modules/ comment/ tests/ src/ Functional/ CommentPreviewTest.php - Tests comment preview.
- ContentEntityFormFieldValidationFilteringTest::testFieldWidgetsWithLimitedValidationErrors in core/
tests/ Drupal/ FunctionalTests/ Entity/ ContentEntityFormFieldValidationFilteringTest.php - Tests field widgets with #limit_validation_errors.
- ContentTranslationFieldSyncRevisionTest::setUp in core/
modules/ content_translation/ tests/ src/ Kernel/ ContentTranslationFieldSyncRevisionTest.php - ContentTranslationFieldSyncRevisionTest::testFileFieldSynchronization in core/
modules/ content_translation/ tests/ src/ Kernel/ ContentTranslationFieldSyncRevisionTest.php - Checks that file field synchronization works as expected.
- ContentTranslationSyncImageTest::setUp in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationSyncImageTest.php - DrupalSelenium2DriverTest::testGetRemoteFilePath in core/
tests/ Drupal/ FunctionalJavascriptTests/ Tests/ DrupalSelenium2DriverTest.php - Tests uploading remote files.
- EditorFileReferenceFilterTest::testEditorFileReferenceFilter in core/
modules/ editor/ tests/ src/ Kernel/ EditorFileReferenceFilterTest.php - Tests the editor file reference filter.
- EmbeddedFormWidgetTest::testInsertionAndReselection in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ EmbeddedFormWidgetTest.php - Tests media inside another widget that validates too enthusiastically.
- EntityReferenceFileUploadTest::testFileUpload in core/
modules/ field/ tests/ src/ Functional/ EntityReference/ EntityReferenceFileUploadTest.php - Tests that the autocomplete input element does not cause ajax fatal.
- FileFieldDisplayTest::testDescToggle in core/
modules/ file/ tests/ src/ Functional/ FileFieldDisplayTest.php - Tests description toggle for field instance configuration.
- FileFieldTestBase::getTestFile in core/
modules/ file/ tests/ src/ Functional/ FileFieldTestBase.php - Retrieves a sample file of the specified type.
- FileFieldValidateTest::testAjaxValidationMessage in core/
modules/ file/ tests/ src/ FunctionalJavascript/ FileFieldValidateTest.php - Tests the validation message is displayed only once for ajax uploads.
- FileFieldWidgetClaroThemeTest::testWidgetDefaultVisibilitySettings in core/
modules/ file/ tests/ src/ FunctionalJavascript/ FileFieldWidgetClaroThemeTest.php - Tests that the field widget visibility settings are respected on the form.
- FileFieldWidgetTest::getTestFile in core/
modules/ file/ tests/ src/ FunctionalJavascript/ FileFieldWidgetTest.php - Retrieves a sample file of the specified type.
- FileFieldWidgetTest::testMultiValuedWidget in core/
modules/ file/ tests/ src/ FunctionalJavascript/ FileFieldWidgetTest.php - Tests upload and remove buttons for multiple multi-valued File fields.
- FileFieldWidgetTest::testSingleValuedWidget in core/
modules/ file/ tests/ src/ FunctionalJavascript/ FileFieldWidgetTest.php - Tests uploading and remove buttons for a single-valued File field.
- FileFieldWidgetTest::testUploadingMoreFilesThanAllowed in core/
modules/ file/ tests/ src/ FunctionalJavascript/ FileFieldWidgetTest.php - Tests uploading more files than allowed at once.
- FileMoveTest::testNormal in core/
modules/ image/ tests/ src/ Kernel/ FileMoveTest.php - Tests moving a randomly generated image.
- FilterHtmlImageSecureTest::testImageSource in core/
modules/ filter/ tests/ src/ Functional/ FilterHtmlImageSecureTest.php - Tests removal of images having a non-local source.
- ImageAdminStylesTest::createSampleImage in core/
modules/ image/ tests/ src/ Functional/ ImageAdminStylesTest.php - Given an image style, generate an image.
- ImageAdminStylesTest::testConfigImport in core/
modules/ image/ tests/ src/ Functional/ ImageAdminStylesTest.php - Tests image style configuration import that does a delete.
- ImageAdminStylesTest::testFlushUserInterface in core/
modules/ image/ tests/ src/ Functional/ ImageAdminStylesTest.php - Tests flush user interface.
- ImageAdminStylesTest::testStyleReplacement in core/
modules/ image/ tests/ src/ Functional/ ImageAdminStylesTest.php - Tests deleting a style and choosing a replacement style.
- ImageDimensionsTest::testImageDimensions in core/
modules/ image/ tests/ src/ Functional/ ImageDimensionsTest.php - Tests styled image dimensions cumulatively.
- ImageFieldDefaultImagesTest::testDefaultImages in core/
modules/ image/ tests/ src/ Functional/ ImageFieldDefaultImagesTest.php - Tests CRUD for fields and field storages with default images.
- ImageFieldDisplayTest::testImageFieldDefaultImage in core/
modules/ image/ tests/ src/ Functional/ ImageFieldDisplayTest.php - Tests use of a default image with an image field.
- ImageFieldDisplayTest::testImageFieldSettings in core/
modules/ image/ tests/ src/ Functional/ ImageFieldDisplayTest.php - Tests for image field settings.
- ImageFieldDisplayTest::testImageLoadingAttribute in core/
modules/ image/ tests/ src/ Functional/ ImageFieldDisplayTest.php - Tests for image loading attribute settings.
- ImageFieldDisplayTest::_testImageFieldFormatters in core/
modules/ image/ tests/ src/ Functional/ ImageFieldDisplayTest.php - Tests image formatters on node display.
- ImageFieldValidateTest::testAJAXValidationMessage in core/
modules/ image/ tests/ src/ FunctionalJavascript/ ImageFieldValidateTest.php - Tests the validation message is displayed only once for ajax uploads.
- ImageFieldValidateTest::testRequiredAttributes in core/
modules/ image/ tests/ src/ Functional/ ImageFieldValidateTest.php - Tests that required alt/title fields gets validated right.
- ImageFieldValidateTest::testResolution in core/
modules/ image/ tests/ src/ Functional/ ImageFieldValidateTest.php - Tests min/max dimensions settings.
- ImageFieldValidateTest::testValid in core/
modules/ image/ tests/ src/ Functional/ ImageFieldValidateTest.php - Tests image validity.
- ImageFieldWidgetMultipleTest::testWidgetElementMultipleUploads in core/
modules/ image/ tests/ src/ FunctionalJavascript/ ImageFieldWidgetMultipleTest.php - Tests image widget element support multiple upload correctly.
- ImageStyleFlushTest::createSampleImage in core/
modules/ image/ tests/ src/ Functional/ ImageStyleFlushTest.php - Given an image style and a wrapper, generate an image.
- ImageStylesPathAndUrlTest::doImageStyleUrlAndPathTests in core/
modules/ image/ tests/ src/ Functional/ ImageStylesPathAndUrlTest.php - Tests building an image style URL.
- ImageThemeFunctionTest::testImageFormatterTheme in core/
modules/ image/ tests/ src/ Kernel/ ImageThemeFunctionTest.php - Tests usage of the image field formatters.
- ImageThemeFunctionTest::testImageStyleTheme in core/
modules/ image/ tests/ src/ Kernel/ ImageThemeFunctionTest.php - Tests usage of the image style theme function.
- ImageUploadTest::testFileUploadLargerFileSize in core/
modules/ ckeditor5/ tests/ src/ Functional/ ImageUploadTest.php - Tests using the file upload route with a file size larger than allowed.
- ImageUploadTest::testLockAfterFailedValidation in core/
modules/ ckeditor5/ tests/ src/ Functional/ ImageUploadTest.php - Test that lock is removed after a failed validation.
- LayoutBuilderDefaultValuesTest::addImageFields in core/
modules/ layout_builder/ tests/ src/ Functional/ LayoutBuilderDefaultValuesTest.php - Helper function to add image fields.
- NavigationLogoTest::testSettingsLogoOptionsForm in core/
modules/ navigation/ tests/ src/ Functional/ NavigationLogoTest.php - Tests Navigation logo configuration base options.
- NavigationSettingsFormTest::testFormSettingsSubmissionHandler in core/
modules/ navigation/ tests/ src/ FunctionalJavascript/ NavigationSettingsFormTest.php - Tests that submission handler works correctly.
- PagePreviewTest::testPagePreview in core/
modules/ node/ tests/ src/ Functional/ PagePreviewTest.php - Checks the node preview functionality.
- ResponsiveImageFieldDisplayTest::assertResponsiveImageFieldFormattersLink in core/
modules/ responsive_image/ tests/ src/ Functional/ ResponsiveImageFieldDisplayTest.php - Tests responsive image formatters linked to the file or node.
- ResponsiveImageFieldDisplayTest::doTestResponsiveImageFieldFormatters in core/
modules/ responsive_image/ tests/ src/ Functional/ ResponsiveImageFieldDisplayTest.php - Tests responsive image formatters on node display.
- ResponsiveImageFieldDisplayTest::testResponsiveImageFieldFormattersEmptyMediaQuery in core/
modules/ responsive_image/ tests/ src/ Functional/ ResponsiveImageFieldDisplayTest.php - Tests responsive image formatter on node display with an empty media query.
- ResponsiveImageFieldDisplayTest::testResponsiveImageFieldFormattersMultipleSources in core/
modules/ responsive_image/ tests/ src/ Functional/ ResponsiveImageFieldDisplayTest.php - Tests responsive image formatter on node display with one and two sources.
- SaveUploadFormTest::setUp in core/
modules/ file/ tests/ src/ Functional/ SaveUploadFormTest.php - SaveUploadFormTest::testCombinedErrorMessages in core/
modules/ file/ tests/ src/ Functional/ SaveUploadFormTest.php - Tests that multiple validation errors are combined in one message.
- SaveUploadFormTest::testNormal in core/
modules/ file/ tests/ src/ Functional/ SaveUploadFormTest.php - Tests the _file_save_upload_from_form() function.
- SaveUploadTest::setUp in core/
modules/ file/ tests/ src/ Functional/ SaveUploadTest.php - SaveUploadTest::testDuplicate in core/
modules/ file/ tests/ src/ Functional/ SaveUploadTest.php - Tests uploading a duplicate file.
- SaveUploadTest::testNormal in core/
modules/ file/ tests/ src/ Functional/ SaveUploadTest.php - Tests the file_save_upload() function.
- SaveUploadTest::testRequired in core/
modules/ file/ tests/ src/ Functional/ SaveUploadTest.php - Tests the file_save_upload() function when the field is required.
- StateValuesCleanAdvancedTest::testFormStateValuesCleanAdvanced in core/
modules/ system/ tests/ src/ Functional/ Form/ StateValuesCleanAdvancedTest.php - Tests \Drupal\Core\Form\FormState::cleanValues().
- TarTest::testCreateArchive in core/
tests/ Drupal/ KernelTests/ Core/ Archiver/ TarTest.php - Tests that the Tar archive is created if it does not exist.
- TaxonomyImageTest::testTaxonomyImageUpload in core/
modules/ taxonomy/ tests/ src/ Functional/ TaxonomyImageTest.php - Tests that a file can be uploaded before the taxonomy term has a name.
- TextFieldTest::testRequiredLongTextWithFileUpload in core/
modules/ text/ tests/ src/ Functional/ TextFieldTest.php - Tests required long text with file upload.
- ThemeSettingsFormTest::testFormSettingsSubmissionHandler in core/
modules/ system/ tests/ src/ FunctionalJavascript/ ThemeSettingsFormTest.php - Tests that submission handler works correctly.
- ThemeTest::testThemeSettings in core/
modules/ system/ tests/ src/ Functional/ System/ ThemeTest.php - Tests the theme settings form.
- ToolkitTestTrait::getImage in core/
tests/ Drupal/ Tests/ Traits/ Core/ Image/ ToolkitTestTrait.php - Sets up an image with the custom toolkit.
- UpdateUploadTest::testUploadModule in core/
modules/ update/ tests/ src/ Functional/ UpdateUploadTest.php - Tests upload, extraction, and update of a module.
- UserPasswordResetTest::testUserPasswordResetWithAdditionalAjaxForm in core/
modules/ user/ tests/ src/ FunctionalJavascript/ UserPasswordResetTest.php - Tests password reset functionality with an AJAX form.
- UserPictureTest::testCreateDeletePicture in core/
modules/ user/ tests/ src/ Functional/ UserPictureTest.php - Tests creation, display, and deletion of user pictures.
- UserPictureTest::testPictureOnNodeComment in core/
modules/ user/ tests/ src/ Functional/ UserPictureTest.php - Tests embedded users on node pages.
- WidgetOverflowTest::setUp in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ WidgetOverflowTest.php - WidgetUploadTest::testWidgetUpload in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ WidgetUploadTest.php - Tests that uploads in the 'media_library_widget' works as expected.
- WidgetUploadTest::testWidgetUploadAdvancedUi in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ WidgetUploadTest.php - Tests that uploads in the widget's advanced UI works as expected.
- ZipTest::testCreateArchive in core/
tests/ Drupal/ KernelTests/ Core/ Archiver/ ZipTest.php - Tests that the Zip archive is created if it does not exist.
- ZipTest::testOverwriteArchive in core/
tests/ Drupal/ KernelTests/ Core/ Archiver/ ZipTest.php - Tests that the Zip archiver is created and overwritten.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.