Mercurial > hg > isophonics-drupal-site
diff core/modules/media/tests/src/Functional/MediaInstallTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/media/tests/src/Functional/MediaInstallTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/media/tests/src/Functional/MediaInstallTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -34,16 +34,11 @@ // 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'); } }