InstallerExistingConfigSyncDirectoryMultilingualTest.php

Same filename in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php
  2. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php
  3. 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php

Namespace

Drupal\FunctionalTests\Installer

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php

View source
<?php

namespace Drupal\FunctionalTests\Installer;


/**
 * Verifies that installing from existing configuration works.
 *
 * @group Installer
 */
class InstallerExistingConfigSyncDirectoryMultilingualTest extends InstallerExistingConfigTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected $defaultTheme = 'stark';
    
    /**
     * {@inheritdoc}
     */
    protected $profile = 'testing_config_install_multilingual';
    
    /**
     * {@inheritdoc}
     */
    protected $existingSyncDirectory = TRUE;
    
    /**
     * Installer step: Select installation profile.
     */
    protected function setUpProfile() {
        // Ensure the site name 'Multilingual' appears as expected in the 'Use
        // existing configuration' radio description.
        $this->assertSession()
            ->pageTextContains('Install Multilingual using existing configuration.');
        return parent::setUpProfile();
    }
    
    /**
     * {@inheritdoc}
     */
    protected function getConfigTarball() {
        return __DIR__ . '/../../../fixtures/config_install/multilingual.tar.gz';
    }
    
    /**
     * Confirms that the installation installed the configuration correctly.
     */
    public function testConfigSync() {
        parent::testConfigSync();
        // Ensure that menu blocks have been created correctly.
        $this->assertSession()
            ->responseNotContains('This block is broken or missing.');
        $this->assertSession()
            ->linkExists('Add content');
    }

}

Classes

Title Deprecated Summary
InstallerExistingConfigSyncDirectoryMultilingualTest Verifies that installing from existing configuration works.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.