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