Mercurial > hg > isophonics-drupal-site
annotate core/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | af1871eacc83 |
children |
rev | line source |
---|---|
Chris@18 | 1 <?php |
Chris@18 | 2 |
Chris@18 | 3 namespace Drupal\FunctionalTests\Installer; |
Chris@18 | 4 |
Chris@18 | 5 use Drupal\Tests\BrowserTestBase; |
Chris@18 | 6 |
Chris@18 | 7 /** |
Chris@18 | 8 * Tests installing the Testing profile with update notifications on. |
Chris@18 | 9 * |
Chris@18 | 10 * @group Installer |
Chris@18 | 11 */ |
Chris@18 | 12 class TestingProfileInstallTest extends BrowserTestBase { |
Chris@18 | 13 |
Chris@18 | 14 /** |
Chris@18 | 15 * {@inheritdoc} |
Chris@18 | 16 */ |
Chris@18 | 17 protected $profile = 'testing'; |
Chris@18 | 18 |
Chris@18 | 19 /** |
Chris@18 | 20 * Ensure the Update module and its dependencies are installed. |
Chris@18 | 21 */ |
Chris@18 | 22 public function testUpdateModuleInstall() { |
Chris@18 | 23 $this->assertTrue( |
Chris@18 | 24 \Drupal::moduleHandler()->moduleExists('update') && \Drupal::moduleHandler()->moduleExists('file') && \Drupal::moduleHandler()->moduleExists('field'), |
Chris@18 | 25 'The Update module and its dependencies are installed.' |
Chris@18 | 26 ); |
Chris@18 | 27 } |
Chris@18 | 28 |
Chris@18 | 29 /** |
Chris@18 | 30 * {@inheritdoc} |
Chris@18 | 31 */ |
Chris@18 | 32 protected function installParameters() { |
Chris@18 | 33 $params = parent::installParameters(); |
Chris@18 | 34 $params['forms']['install_configure_form']['enable_update_status_module'] = TRUE; |
Chris@18 | 35 return $params; |
Chris@18 | 36 } |
Chris@18 | 37 |
Chris@18 | 38 } |