comparison core/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
children af1871eacc83
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
1 <?php 1 <?php
2 2
3 namespace Drupal\FunctionalTests\Installer; 3 namespace Drupal\FunctionalTests\Installer;
4 4
5 use Drupal\Component\Serialization\Yaml; 5 use Drupal\Component\Serialization\Yaml;
6 use Drupal\Core\Site\Settings;
7 6
8 /** 7 /**
9 * Tests multiple distribution profile support. 8 * Tests multiple distribution profile support.
10 * 9 *
11 * @group Installer 10 * @group Installer
76 // Confirm that we are logged-in after installation. 75 // Confirm that we are logged-in after installation.
77 $this->assertText($this->rootUser->getUsername()); 76 $this->assertText($this->rootUser->getUsername());
78 77
79 // Confirm that Drupal recognizes this distribution as the current profile. 78 // Confirm that Drupal recognizes this distribution as the current profile.
80 $this->assertEqual(\Drupal::installProfile(), 'distribution_one'); 79 $this->assertEqual(\Drupal::installProfile(), 'distribution_one');
81 $this->assertEqual(Settings::get('install_profile'), 'distribution_one', 'The install profile has been written to settings.php.');
82 $this->assertEqual($this->config('core.extension')->get('profile'), 'distribution_one', 'The install profile has been written to core.extension configuration.'); 80 $this->assertEqual($this->config('core.extension')->get('profile'), 'distribution_one', 'The install profile has been written to core.extension configuration.');
83 81
84 $this->rebuildContainer(); 82 $this->rebuildContainer();
85 $this->pass('Container can be rebuilt as distribution is written to configuration.'); 83 $this->pass('Container can be rebuilt as distribution is written to configuration.');
86 $this->assertEqual(\Drupal::installProfile(), 'distribution_one'); 84 $this->assertEqual(\Drupal::installProfile(), 'distribution_one');