X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FTests%2FInstaller%2FMultipleDistributionsProfileTest.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FTests%2FInstaller%2FMultipleDistributionsProfileTest.php;h=0000000000000000000000000000000000000000;hp=171a0afc317edf9280e4e1b6d5877dd6a7679eff;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/system/src/Tests/Installer/MultipleDistributionsProfileTest.php b/web/core/modules/system/src/Tests/Installer/MultipleDistributionsProfileTest.php deleted file mode 100644 index 171a0afc3..000000000 --- a/web/core/modules/system/src/Tests/Installer/MultipleDistributionsProfileTest.php +++ /dev/null @@ -1,91 +0,0 @@ - 'profile', - 'core' => \Drupal::CORE_COMPATIBILITY, - 'name' => $name . ' profile', - 'distribution' => [ - 'name' => $name, - 'install' => [ - 'theme' => 'bartik', - ], - ], - ]; - // File API functions are not available yet. - $path = $this->siteDirectory . '/profiles/' . $name; - mkdir($path, 0777, TRUE); - file_put_contents("$path/$name.info.yml", Yaml::encode($info)); - } - // Install the first distribution. - $this->profile = 'distribution_one'; - - parent::setUp(); - } - - /** - * {@inheritdoc} - */ - protected function setUpLanguage() { - // Verify that the distribution name appears. - $this->assertRaw('distribution_one'); - // Verify that the requested theme is used. - $this->assertRaw('bartik'); - // Verify that the "Choose profile" step does not appear. - $this->assertNoText('profile'); - - parent::setUpLanguage(); - } - - /** - * {@inheritdoc} - */ - protected function setUpProfile() { - // This step is skipped, because there is a distribution profile. - } - - /** - * Confirms that the installation succeeded. - */ - public function testInstalled() { - $this->assertUrl('user/1'); - $this->assertResponse(200); - // Confirm that we are logged-in after installation. - $this->assertText($this->rootUser->getUsername()); - - // Confirm that Drupal recognizes this distribution as the current profile. - $this->assertEqual(\Drupal::installProfile(), 'distribution_one'); - $this->assertEqual(Settings::get('install_profile'), 'distribution_one', 'The install profile has been written to settings.php.'); - $this->assertEqual($this->config('core.extension')->get('profile'), 'distribution_one', 'The install profile has been written to core.extension configuration.'); - - $this->rebuildContainer(); - $this->pass('Container can be rebuilt as distribution is written to configuration.'); - $this->assertEqual(\Drupal::installProfile(), 'distribution_one'); - } - -}