Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
32 $assert_session = $this->assertSession(); | 32 $assert_session = $this->assertSession(); |
33 | 33 |
34 // Uninstall the media module. | 34 // Uninstall the media module. |
35 $this->container->get('module_installer')->uninstall(['media'], FALSE); | 35 $this->container->get('module_installer')->uninstall(['media'], FALSE); |
36 | 36 |
37 // Install the media module again, through a test module that depends on it. | |
38 // Note: We use a test module because in 8.4 the media module is hidden. | |
39 // @todo Simplify this in https://www.drupal.org/node/2897028 once it's | |
40 // shown again. | |
41 $this->drupalGet('/admin/modules'); | 37 $this->drupalGet('/admin/modules'); |
42 $page->checkField('modules[media_test_views][enable]'); | 38 $page->checkField('modules[media][enable]'); |
43 $page->pressButton('Install'); | 39 $page->pressButton('Install'); |
44 $assert_session->pageTextContains('Some required modules must be enabled'); | 40 $assert_session->pageTextNotContains('could not be moved/copied because a file by that name already exists in the destination directory'); |
45 $page->pressButton('Continue'); | 41 $assert_session->pageTextContains('Module Media has been enabled'); |
46 $this->assertSession()->pageTextNotContains('could not be moved/copied because a file by that name already exists in the destination directory'); | |
47 } | 42 } |
48 | 43 |
49 } | 44 } |