X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FTests%2FInstaller%2FInstallerTest.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FTests%2FInstaller%2FInstallerTest.php;h=0000000000000000000000000000000000000000;hp=be51057ad80655e0f32a293d950111c05673c3fd;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/system/src/Tests/Installer/InstallerTest.php b/web/core/modules/system/src/Tests/Installer/InstallerTest.php deleted file mode 100644 index be51057ad..000000000 --- a/web/core/modules/system/src/Tests/Installer/InstallerTest.php +++ /dev/null @@ -1,91 +0,0 @@ -assertUrl('user/1'); - $this->assertResponse(200); - // Confirm that we are logged-in after installation. - $this->assertText($this->rootUser->getUsername()); - - // Verify that the confirmation message appears. - require_once \Drupal::root() . '/core/includes/install.inc'; - $this->assertRaw(t('Congratulations, you installed @drupal!', [ - '@drupal' => drupal_install_profile_distribution_name(), - ])); - - // Ensure that the timezone is correct for sites under test after installing - // interactively. - $this->assertEqual($this->config('system.date')->get('timezone.default'), 'Australia/Sydney'); - } - - /** - * Installer step: Select language. - */ - protected function setUpLanguage() { - // Test that \Drupal\Core\Render\BareHtmlPageRenderer adds assets and - // metatags as expected to the first page of the installer. - $this->assertRaw('core/themes/seven/css/components/buttons.css'); - $this->assertRaw(''); - - // Assert that the expected title is present. - $this->assertEqual('Choose language', $this->cssSelect('main h2')[0]); - - parent::setUpLanguage(); - } - - /** - * {@inheritdoc} - */ - protected function setUpProfile() { - // Assert that the expected title is present. - $this->assertEqual('Select an installation profile', $this->cssSelect('main h2')[0]); - $result = $this->xpath('//span[contains(@class, :class) and contains(text(), :text)]', [':class' => 'visually-hidden', ':text' => 'Select an installation profile']); - $this->assertEqual(count($result), 1, "Title/Label not displayed when '#title_display' => 'invisible' attribute is set"); - - parent::setUpProfile(); - } - - /** - * {@inheritdoc} - */ - protected function setUpSettings() { - // Assert that the expected title is present. - $this->assertEqual('Database configuration', $this->cssSelect('main h2')[0]); - - parent::setUpSettings(); - } - - /** - * {@inheritdoc} - */ - protected function setUpSite() { - // Assert that the expected title is present. - $this->assertEqual('Configure site', $this->cssSelect('main h2')[0]); - - parent::setUpSite(); - } - - /** - * {@inheritdoc} - */ - protected function visitInstaller() { - parent::visitInstaller(); - - // Assert the title is correct and has the title suffix. - $this->assertTitle('Choose language | Drupal'); - } - -}