MediaTest::doTestPostIndividual |
function |
core/modules/jsonapi/tests/src/Functional/MediaTest.php |
Tests POSTing an individual resource, plus edge cases to ensure good DX. |
MediaTest::doTestRelationshipMutation |
function |
core/modules/jsonapi/tests/src/Functional/MediaTest.php |
@todo Remove this in https://www.drupal.org/node/2824851. |
MediaTest::getEditorialPermissions |
function |
core/modules/jsonapi/tests/src/Functional/MediaTest.php |
Gets an array of permissions required to view and update any tested entity. |
MediaTest::getExpectedDocument |
function |
core/modules/jsonapi/tests/src/Functional/MediaTest.php |
Returns the expected JSON:API document for the entity. |
MediaTest::getExpectedGetRelationshipDocumentData |
function |
core/modules/jsonapi/tests/src/Functional/MediaTest.php |
Gets the expected document data for the given relationship. |
MediaTest::getExpectedUnauthorizedAccessCacheability |
function |
core/modules/jsonapi/tests/src/Functional/MediaTest.php |
Returns the expected cacheability for an unauthorized response. |
MediaTest::getExpectedUnauthorizedAccessMessage |
function |
core/modules/jsonapi/tests/src/Functional/MediaTest.php |
Return the expected error message. |
MediaTest::getPostDocument |
function |
core/modules/jsonapi/tests/src/Functional/MediaTest.php |
Returns the JSON:API POST document. |
MediaTest::providerTestViewMode |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
For testing view modes in different scenarios. |
MediaTest::setUpAuthorization |
function |
core/modules/jsonapi/tests/src/Functional/MediaTest.php |
Sets up the necessary authorization. |
MediaTest::setUpRevisionAuthorization |
function |
core/modules/jsonapi/tests/src/Functional/MediaTest.php |
Sets up the necessary authorization for handling revisions. |
MediaTest::testAlignment |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Tests alignment integration. |
MediaTest::testAlt |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Tests the CKEditor 5 media plugin can override image media's alt attribute. |
MediaTest::testAltDisabled |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Tests that the image media source's alt_field being disabled is respected. |
MediaTest::testCollectionFilterAccess |
function |
core/modules/jsonapi/tests/src/Functional/MediaTest.php |
|
MediaTest::testConversion |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Tests that `<drupal-media>` is converted into a block element. |
MediaTest::testDrupalMedia |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Tests the drupal-media tag. |
MediaTest::testDrupalMediaStyleInDropdown |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Ensures that Drupal Media Styles can be displayed in a dropdown. |
MediaTest::testDrupalMediaStyleWithClass |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Tests Drupal Media Style with a CSS class. |
MediaTest::testEditableCaption |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Tests caption editing in the CKEditor widget. |
MediaTest::testEntity |
function |
core/modules/media/tests/src/Kernel/MediaTest.php |
Tests various aspects of a media item. |
MediaTest::testMediaArbitraryHtml |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Tests that arbitrary attributes are allowed via GHS. |
MediaTest::testMediaSplitList |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Tests adding media to a list does not split the list. |
MediaTest::testNameBaseField |
function |
core/modules/media/tests/src/Kernel/MediaTest.php |
Tests the Media "name" base field behavior. |
MediaTest::testOnlyDrupalMediaTagProcessed |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Tests that only <drupal-media> tags are processed. |
MediaTest::testPermissions |
function |
core/modules/media/tests/src/Kernel/MediaTest.php |
Tests permissions based on a media type have the correct permissions. |
MediaTest::testTranslationAlt |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Tests the CKEditor 5 media plugin loads the translated alt attribute. |
MediaTest::testViewMode |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php |
Tests view mode integration. |
MediaTestBase |
class |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php |
Base class for CKEditor 5 Media integration tests. |
MediaTestBase.php |
file |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php |
|
MediaTestBase::$adminUser |
property |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php |
The user to use during testing. |
MediaTestBase::$defaultTheme |
property |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php |
The theme to install as the default for testing. |
MediaTestBase::$host |
property |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php |
A host entity with a body field to embed media in. |
MediaTestBase::$media |
property |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php |
The sample Media entity to embed. |
MediaTestBase::$mediaFile |
property |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php |
The second sample Media entity to embed used in one of the tests. |
MediaTestBase::$modules |
property |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php |
Modules to install. |
MediaTestBase::assertSourceAttributeSame |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php |
Verifies value of an attribute on the downcast <drupal-media> element. |
MediaTestBase::getLastPreviewRequestTransferSize |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php |
Gets the transfer size of the last preview request. |
MediaTestBase::setUp |
function |
core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php |
|
MediaTestConstraint |
class |
core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraint.php |
A media test constraint. |
MediaTestConstraint.php |
file |
core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraint.php |
|
MediaTestConstraint::$message |
property |
core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraint.php |
The default violation message. |
MediaTestConstraintValidator |
class |
core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraintValidator.php |
Validates the MediaTestConstraint. |
MediaTestConstraintValidator.php |
file |
core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraintValidator.php |
|
MediaTestConstraintValidator::validate |
function |
core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraintValidator.php |
|
MediaTestOembedServiceProvider |
class |
core/modules/media/tests/modules/media_test_oembed/src/MediaTestOembedServiceProvider.php |
Replaces oEmbed-related media services with testing versions. |
MediaTestOembedServiceProvider.php |
file |
core/modules/media/tests/modules/media_test_oembed/src/MediaTestOembedServiceProvider.php |
|
MediaTestOembedServiceProvider::alter |
function |
core/modules/media/tests/modules/media_test_oembed/src/MediaTestOembedServiceProvider.php |
Modifies existing service definitions. |
MediaThumbnailFormatter |
class |
core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php |
Plugin implementation of the 'media_thumbnail' formatter. |
MediaThumbnailFormatter.php |
file |
core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php |
|