InstallerExistingConfigSyncDirectoryMultilingualTest.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace Drupal\FunctionalTests\Installer;
  3. /**
  4. * Verifies that installing from existing configuration works.
  5. *
  6. * @group Installer
  7. */
  8. class InstallerExistingConfigSyncDirectoryMultilingualTest extends InstallerExistingConfigTestBase {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. protected $defaultTheme = 'stark';
  13. /**
  14. * {@inheritdoc}
  15. */
  16. protected $profile = 'testing_config_install_multilingual';
  17. /**
  18. * {@inheritdoc}
  19. */
  20. protected $existingSyncDirectory = TRUE;
  21. /**
  22. * Installer step: Select installation profile.
  23. */
  24. protected function setUpProfile() {
  25. // Ensure the site name 'Multilingual' appears as expected in the 'Use
  26. // existing configuration' radio description.
  27. $this->assertSession()->pageTextContains('Install Multilingual using existing configuration.');
  28. return parent::setUpProfile();
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. protected function getConfigTarball() {
  34. return __DIR__ . '/../../../fixtures/config_install/multilingual.tar.gz';
  35. }
  36. /**
  37. * Confirms that the installation installed the configuration correctly.
  38. */
  39. public function testConfigSync() {
  40. parent::testConfigSync();
  41. // Ensure that menu blocks have been created correctly.
  42. $this->assertSession()->responseNotContains('This block is broken or missing.');
  43. $this->assertSession()->linkExists('Add content');
  44. }
  45. }