Unverified Commit 1c5d77cb authored by alexpott's avatar alexpott

Issue #2897028 by chr.fritsch: Update the tests once the media module will show in UI

(cherry picked from commit 50548d3d)
parent a13f7aca
......@@ -34,16 +34,11 @@ public function testReinstallAfterUninstall() {
// 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');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment