InstallerExistingConfigSyncDirectoryMultilingualTest.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 $profile = 'testing_config_install_multilingual';
  13. /**
  14. * {@inheritdoc}
  15. */
  16. protected $existingSyncDirectory = TRUE;
  17. /**
  18. * Installer step: Select installation profile.
  19. */
  20. protected function setUpProfile() {
  21. // Ensure the site name 'Multilingual' appears as expected in the 'Use
  22. // existing configuration' radio description.
  23. $this->assertSession()->pageTextContains('Install Multilingual using existing configuration.');
  24. return parent::setUpProfile();
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. protected function getConfigTarball() {
  30. return __DIR__ . '/../../../fixtures/config_install/multilingual.tar.gz';
  31. }
  32. /**
  33. * Confirms that the installation installed the configuration correctly.
  34. */
  35. public function testConfigSync() {
  36. parent::testConfigSync();
  37. // Ensure that menu blocks have been created correctly.
  38. $this->assertSession()->responseNotContains('This block is broken or missing.');
  39. $this->assertSession()->linkExists('Add content');
  40. }
  41. }