X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmedia%2Ftests%2Fsrc%2FFunctional%2FMediaInstallTest.php;fp=web%2Fcore%2Fmodules%2Fmedia%2Ftests%2Fsrc%2FFunctional%2FMediaInstallTest.php;h=010f07698a941e9ca64f50b6679b979a316cd389;hp=d13c3f06f3369bd14c8eb0c8a04501fee0dcd6d4;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/media/tests/src/Functional/MediaInstallTest.php b/web/core/modules/media/tests/src/Functional/MediaInstallTest.php index d13c3f06f..010f07698 100644 --- a/web/core/modules/media/tests/src/Functional/MediaInstallTest.php +++ b/web/core/modules/media/tests/src/Functional/MediaInstallTest.php @@ -34,16 +34,11 @@ class MediaInstallTest extends BrowserTestBase { // Uninstall the media module. $this->container->get('module_installer')->uninstall(['media'], FALSE); - // Install the media module again, through a test module that depends on it. - // Note: We use a test module because in 8.4 the media module is hidden. - // @todo Simplify this in https://www.drupal.org/node/2897028 once it's - // shown again. $this->drupalGet('/admin/modules'); - $page->checkField('modules[media_test_views][enable]'); + $page->checkField('modules[media][enable]'); $page->pressButton('Install'); - $assert_session->pageTextContains('Some required modules must be enabled'); - $page->pressButton('Continue'); - $this->assertSession()->pageTextNotContains('could not be moved/copied because a file by that name already exists in the destination directory'); + $assert_session->pageTextNotContains('could not be moved/copied because a file by that name already exists in the destination directory'); + $assert_session->pageTextContains('Module Media has been enabled'); } }