69 calls to TestFileCreationTrait::getTestFiles()
- AjaxFileManagedMultipleTest::testMultipleFilesUpload in core/
modules/ file/ tests/ src/ FunctionalJavascript/ AjaxFileManagedMultipleTest.php - Tests if managed file form element works well with multiple files upload.
- 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 - 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.
- EditorUploadImageScaleTest::testEditorUploadImageScale in core/
modules/ editor/ tests/ src/ Functional/ EditorUploadImageScaleTest.php - Tests scaling of inline images.
- 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.
- 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/ Functional/ 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.
- ImageFieldAttributesTest::setUp in core/
modules/ rdf/ tests/ src/ Functional/ ImageFieldAttributesTest.php - 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 resolution 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.
- PagePreviewTest::testPagePreview in core/
modules/ node/ tests/ src/ Functional/ PagePreviewTest.php - Checks the node preview functionality.
- QuickEditImageControllerTest::testInvalidUpload in core/
modules/ quickedit/ tests/ src/ Functional/ QuickEditImageControllerTest.php - Tests that uploading an invalid image does not work.
- QuickEditImageControllerTest::testValidImageUpload in core/
modules/ quickedit/ tests/ src/ Functional/ QuickEditImageControllerTest.php - Tests that uploading a valid image works.
- QuickEditImageTest::testImageInPlaceEditor in core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ QuickEditImageTest.php - Tests that quick editor works correctly with images.
- 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::testResponsiveImageFieldFormattersOneSource in core/
modules/ responsive_image/ tests/ src/ Functional/ ResponsiveImageFieldDisplayTest.php - Tests responsive image formatter on node display with one source.
- 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().
- 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.
- ToolkitTestBase::setUp in core/
tests/ Drupal/ FunctionalTests/ Image/ ToolkitTestBase.php - 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.
- WidgetUploadTest::testWidgetUpload in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ WidgetUploadTest.php - Tests that uploads in the Media library's 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.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.