TestingProfileInstallTest.php 990 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Drupal\FunctionalTests\Installer;
  3. use Drupal\Tests\BrowserTestBase;
  4. /**
  5. * Tests installing the Testing profile with update notifications on.
  6. *
  7. * @group Installer
  8. */
  9. class TestingProfileInstallTest extends BrowserTestBase {
  10. /**
  11. * {@inheritdoc}
  12. */
  13. protected $profile = 'testing';
  14. /**
  15. * {@inheritdoc}
  16. */
  17. protected $defaultTheme = 'stark';
  18. /**
  19. * Ensure the Update module and its dependencies are installed.
  20. */
  21. public function testUpdateModuleInstall() {
  22. $this->assertTrue(
  23. \Drupal::moduleHandler()->moduleExists('update') && \Drupal::moduleHandler()->moduleExists('file') && \Drupal::moduleHandler()->moduleExists('field'),
  24. 'The Update module and its dependencies are installed.'
  25. );
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. protected function installParameters() {
  31. $params = parent::installParameters();
  32. $params['forms']['install_configure_form']['enable_update_status_module'] = TRUE;
  33. return $params;
  34. }
  35. }