53 calls to MediaTypeCreationTrait::createMediaType()
- ContentEntityTest::testMediaSource in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ Plugin/ migrate/ source/ ContentEntityTest.php - Tests media source plugin.
- ContentModerationTest::setUp in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ ContentModerationTest.php - EntityQueryAccessTest::testMediaEntityQueryAccess in core/
modules/ views/ tests/ src/ Functional/ Entity/ EntityQueryAccessTest.php - Tests that the 'media_access' query tag is respected by Views.
- EntityReferenceSelectionAccessTest::testMediaHandler in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionAccessTest.php - Tests the selection handler for the media entity type.
- JSTranslationTest::setUp in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ JSTranslationTest.php - MediaAccessControlHandlerTest::testAccess in core/
modules/ media/ tests/ src/ Kernel/ MediaAccessControlHandlerTest.php - Tests the media access control handler.
- MediaAccessTest::testCanonicalMediaAccess in core/
modules/ media/ tests/ src/ Functional/ MediaAccessTest.php - Tests view access control on the canonical page.
- MediaAccessTest::testMediaAccess in core/
modules/ media/ tests/ src/ Functional/ MediaAccessTest.php - Tests some access control functionality.
- MediaAccessTest::testMediaAnonymousUserAccess in core/
modules/ media/ tests/ src/ Functional/ MediaAccessTest.php - Tests media access of anonymous user.
- MediaAccessTest::testReferencedRendering in core/
modules/ media/ tests/ src/ Functional/ MediaAccessTest.php - Tests access for embedded medias.
- MediaAccessTest::testUnpublishedMediaUserAccess in core/
modules/ media/ tests/ src/ Functional/ MediaAccessTest.php - Tests unpublished media access.
- MediaBulkFormTest::setUp in core/
modules/ media/ tests/ src/ Functional/ MediaBulkFormTest.php - MediaCacheTagsTest::createEntity in core/
modules/ media/ tests/ src/ Functional/ MediaCacheTagsTest.php - Creates the entity to be tested.
- MediaContextualLinksTest::testMediaContextualLinks in core/
modules/ media/ tests/ src/ Functional/ MediaContextualLinksTest.php - Tests contextual links.
- MediaDisplayTest::testMediaDisplay in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaDisplayTest.php - Tests basic media display.
- MediaEmbedFilterTestBase::setUp in core/
modules/ media/ tests/ src/ Kernel/ MediaEmbedFilterTestBase.php - MediaEntityMetadataApiTest::setUp in core/
modules/ ckeditor5/ tests/ src/ Functional/ MediaEntityMetadataApiTest.php - MediaKernelTestBase::setUp in core/
modules/ media/ tests/ src/ Kernel/ MediaKernelTestBase.php - MediaLibraryAddFormTest::setUp in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryAddFormTest.php - MediaLibraryDisplayModeTest::testDisplayModes in core/
modules/ media_library/ tests/ src/ Functional/ MediaLibraryDisplayModeTest.php - Tests that the Media Library can automatically configure display modes.
- MediaLibraryStateTest::setUp in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryStateTest.php - MediaLibraryTest::setUp in core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaLibraryTest.php - MediaLibraryTest::setUp in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ MediaLibraryTest.php - MediaOverviewPageTest::testMediaOverviewPage in core/
modules/ media/ tests/ src/ Functional/ MediaOverviewPageTest.php - Tests that the Media overview page (/admin/content/media).
- MediaRequirementsTest::testMissingSourceFieldDefinition in core/
modules/ media/ tests/ src/ Functional/ MediaRequirementsTest.php - Tests that the requirements check can handle a missing source field.
- MediaRevisionTest::testFileMediaRevision in core/
modules/ media/ tests/ src/ Functional/ MediaRevisionTest.php - Tests creating revisions of a File media item.
- MediaRevisionTest::testImageMediaRevision in core/
modules/ media/ tests/ src/ Functional/ MediaRevisionTest.php - Tests creating revisions of an Image media item.
- MediaRevisionTest::testRevisions in core/
modules/ media/ tests/ src/ Functional/ MediaRevisionTest.php - Checks media revision operations.
- MediaSettingsTest::testStatusPage in core/
modules/ media/ tests/ src/ Functional/ MediaSettingsTest.php - Tests that media warning appears if oEmbed media types exists.
- MediaSourceFileTest::testFileDeletion in core/
modules/ media/ tests/ src/ Kernel/ MediaSourceFileTest.php - Tests a media file can be deleted.
- MediaSourceFileTest::testFileExtensionConstraint in core/
modules/ media/ tests/ src/ Kernel/ MediaSourceFileTest.php - Tests the file extension constraint.
- MediaSourceFileTest::testPreventSourceFieldDeletion in core/
modules/ media/ tests/ src/ Functional/ MediaSourceFileTest.php - Ensure source field deletion is not possible.
- MediaSourceFileTest::testSourceFieldSettingsEditing in core/
modules/ media/ tests/ src/ Functional/ MediaSourceFileTest.php - Tests that it's possible to change the allowed file extensions.
- MediaSourceImageTest::testOnlyMainPropertiesTriggerSourceFieldChanged in core/
modules/ media/ tests/ src/ Functional/ MediaSourceImageTest.php - Test that non-main properties do not trigger source field value change.
- MediaTemplateSuggestionsTest::testMediaThemeHookSuggestions in core/
modules/ media/ tests/ src/ Functional/ MediaTemplateSuggestionsTest.php - Tests template suggestions from media_theme_suggestions_media().
- MediaTest::setUp in core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaTest.php - MediaTest::setUp in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ MediaTest.php - MediaThumbnailFormatterTest::testRender in core/
modules/ media/ tests/ src/ Functional/ FieldFormatter/ MediaThumbnailFormatterTest.php - Tests the media thumbnail field formatter.
- MediaTranslationTest::setUp in core/
modules/ media/ tests/ src/ Kernel/ MediaTranslationTest.php - MediaTranslationUITest::setupBundle in core/
modules/ media/ tests/ src/ Functional/ MediaTranslationUITest.php - Creates or initializes the bundle date if needed.
- MediaUiFunctionalTest::testMediaCollectionRoute in core/
modules/ media/ tests/ src/ Functional/ MediaUiFunctionalTest.php - Tests the media collection route.
- MediaUiFunctionalTest::testMediaCreateRedirect in core/
modules/ media/ tests/ src/ Functional/ MediaUiFunctionalTest.php - Tests the redirect URL after creating a media item.
- MediaUiFunctionalTest::testMediaReferenceWidget in core/
modules/ media/ tests/ src/ Functional/ MediaUiFunctionalTest.php - Tests the default autocomplete widgets for media reference fields.
- MediaUiFunctionalTest::testMediaWithMultipleMediaTypes in core/
modules/ media/ tests/ src/ Functional/ MediaUiFunctionalTest.php - Tests the "media/add" page.
- MediaUiFunctionalTest::testMediaWithOnlyOneMediaType in core/
modules/ media/ tests/ src/ Functional/ MediaUiFunctionalTest.php - Tests the media actions (add/edit/delete).
- MediaUiJavascriptTest::testMediaTypes in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaUiJavascriptTest.php - Tests a media type administration.
- MediaViewsWizardTest::testMediaWizard in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaViewsWizardTest.php - Tests adding a view of media.
- OEmbedFieldWidgetTest::testFieldWidgetHelpText in core/
modules/ media/ tests/ src/ Functional/ FieldWidget/ OEmbedFieldWidgetTest.php - Tests that the oEmbed field widget shows the configured help text.
- OEmbedFormatterTest::testDisplayConfiguration in core/
modules/ media/ tests/ src/ Functional/ FieldFormatter/ OEmbedFormatterTest.php - Tests that oEmbed media types' display can be configured correctly.
- OEmbedFormatterTest::testRender in core/
modules/ media/ tests/ src/ Functional/ FieldFormatter/ OEmbedFormatterTest.php - Tests the oEmbed field formatter.
- OEmbedSourceTest::testThumbnailUri in core/
modules/ media/ tests/ src/ Kernel/ OEmbedSourceTest.php - Tests that remote thumbnails are downloaded correctly.
- RevisionUserTest::setUp in core/
modules/ media/ tests/ src/ Kernel/ Views/ RevisionUserTest.php - TranslationsTest::setUp in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ TranslationsTest.php
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.