Chris@0: assertRaw(t('Congratulations, you installed @drupal!', [ Chris@0: '@drupal' => drupal_install_profile_distribution_name(), Chris@0: ])); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: protected function setUpSite() { Chris@0: // Test that the correct theme is being used. Chris@0: $this->assertNoRaw('bartik'); Chris@0: $this->assertRaw('themes/seven/css/theme/install-page.css'); Chris@0: parent::setUpSite(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: protected function curlExec($curl_options, $redirect = FALSE) { Chris@0: // Ensure that we see the classy progress CSS on the batch page. Chris@0: // Batch processing happens as part of HTTP redirects, so we can access the Chris@0: // HTML of the batch page. Chris@0: if (strpos($curl_options[CURLOPT_URL], '&id=1&op=do_nojs') !== FALSE) { Chris@0: $this->assertRaw('themes/classy/css/components/progress.css'); Chris@0: } Chris@0: return parent::curlExec($curl_options, $redirect); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Ensures that the exported standard configuration is up to date. Chris@0: */ Chris@0: public function testStandardConfig() { Chris@0: $skipped_config = []; Chris@0: // \Drupal\simpletest\WebTestBase::installParameters() uses Chris@0: // simpletest@example.com as mail address. Chris@0: $skipped_config['contact.form.feedback'][] = '- simpletest@example.com'; Chris@0: // \Drupal\filter\Entity\FilterFormat::toArray() drops the roles of filter Chris@0: // formats. Chris@0: $skipped_config['filter.format.basic_html'][] = 'roles:'; Chris@0: $skipped_config['filter.format.basic_html'][] = '- authenticated'; Chris@0: $skipped_config['filter.format.full_html'][] = 'roles:'; Chris@0: $skipped_config['filter.format.full_html'][] = '- administrator'; Chris@0: $skipped_config['filter.format.restricted_html'][] = 'roles:'; Chris@0: $skipped_config['filter.format.restricted_html'][] = '- anonymous'; Chris@0: Chris@0: $this->assertInstalledConfig($skipped_config); Chris@0: } Chris@0: Chris@0: }