summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2018-01-06 20:19:42 (GMT)
committerxjm2018-01-06 20:19:42 (GMT)
commit32fc1125e7a184fd5c63b6700b0fe927aacc3ce3 (patch)
tree8c150599a1c53d78afc7c4020c60e24e17ae2ffc
parentb23aebd77eb1a798b837f84c31ffaad68f70b60a (diff)
Issue #2934840 by robpowell, marcoscano: MediaAccessTest wrongly extends another test class, instead of base class
-rw-r--r--core/modules/media/tests/src/Functional/MediaAccessTest.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/core/modules/media/tests/src/Functional/MediaAccessTest.php b/core/modules/media/tests/src/Functional/MediaAccessTest.php
index d5c2304..b7ec0f8 100644
--- a/core/modules/media/tests/src/Functional/MediaAccessTest.php
+++ b/core/modules/media/tests/src/Functional/MediaAccessTest.php
@@ -12,11 +12,28 @@ use Drupal\user\RoleInterface;
*
* @group media
*/
-class MediaAccessTest extends MediaUiFunctionalTest {
+class MediaAccessTest extends MediaFunctionalTestBase {
use AssertPageCacheContextsAndTagsTrait;
/**
+ * {@inheritdoc}
+ */
+ public static $modules = [
+ 'block',
+ 'media_test_source',
+ ];
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function setUp() {
+ parent::setUp();
+ // This is needed to provide the user cache context for a below assertion.
+ $this->drupalPlaceBlock('local_tasks_block');
+ }
+
+ /**
* Test some access control functionality.
*/
public function testMediaAccess() {