summaryrefslogtreecommitdiffstats
path: root/core/modules/media/tests/src/Functional/MediaContextualLinksTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/media/tests/src/Functional/MediaContextualLinksTest.php')
-rw-r--r--core/modules/media/tests/src/Functional/MediaContextualLinksTest.php45
1 files changed, 0 insertions, 45 deletions
diff --git a/core/modules/media/tests/src/Functional/MediaContextualLinksTest.php b/core/modules/media/tests/src/Functional/MediaContextualLinksTest.php
deleted file mode 100644
index 1d97773..0000000
--- a/core/modules/media/tests/src/Functional/MediaContextualLinksTest.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-namespace Drupal\Tests\media\Functional;
-
-use Drupal\media\Entity\Media;
-
-/**
- * Tests views contextual links on media items.
- *
- * @group media
- */
-class MediaContextualLinksTest extends MediaFunctionalTestBase {
-
- /**
- * {@inheritdoc}
- */
- public static $modules = [
- 'contextual',
- ];
-
- /**
- * Tests contextual links.
- */
- public function testMediaContextualLinks() {
- // Create a media type.
- $mediaType = $this->createMediaType();
-
- // Create a media item.
- $media = Media::create([
- 'bundle' => $mediaType->id(),
- 'name' => 'Unnamed',
- ]);
- $media->save();
-
- $user = $this->drupalCreateUser([
- 'administer media',
- 'access contextual links',
- ]);
- $this->drupalLogin($user);
-
- $this->drupalGet('media/' . $media->id());
- $this->assertSession()->elementAttributeContains('css', 'div[data-contextual-id]', 'data-contextual-id', 'media:media=' . $media->id() . ':');
- }
-
-}