Issue #2895059 by naveenvalecha, marcoscano, seanB, xjm, Berdir: Move media module out of Core (Experimental) package and into the Core package, but mark it hidden

8.4.x
xjm 2017-07-24 15:53:25 -05:00
parent 40d1a11b58
commit 828f315205
2 changed files with 13 additions and 6 deletions

View File

@ -1,9 +1,10 @@
name: Media
description: 'Create reusable media.'
type: module
package: Core (Experimental)
package: Core
version: VERSION
core: 8.x
hidden: true
dependencies:
- file
- image

View File

@ -29,14 +29,20 @@ class MediaInstallTest extends BrowserTestBase {
*/
public function testReinstallAfterUninstall() {
$page = $this->getSession()->getPage();
$assert_session = $this->assertSession();
// 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][enable]');
$page->checkField('modules[media_test_views][enable]');
$page->pressButton('Install');
// @todo Remove this if-statement in https://www.drupal.org/node/2895059
if ($page->find('css', 'h1')->getText() == 'Are you sure you wish to enable experimental modules?') {
$page->pressButton('Continue');
}
$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');
}