3 namespace Drupal\FunctionalTests\Installer;
6 * Tests the interactive installer installing the standard profile.
10 class StandardInstallerTest extends ConfigAfterInstallerTestBase {
15 protected $profile = 'standard';
18 * Ensures that the user page is available after installation.
20 public function testInstaller() {
21 // Verify that the Standard install profile's default frontpage appears.
22 $this->assertRaw('No front page content has been created yet.');
28 protected function setUpSite() {
29 // Test that the correct theme is being used.
30 $this->assertNoRaw('bartik');
31 $this->assertRaw('themes/seven/css/theme/install-page.css');
38 protected function curlExec($curl_options, $redirect = FALSE) {
39 // Ensure that we see the classy progress CSS on the batch page.
40 // Batch processing happens as part of HTTP redirects, so we can access the
41 // HTML of the batch page.
42 if (strpos($curl_options[CURLOPT_URL], '&id=1&op=do_nojs') !== FALSE) {
43 $this->assertRaw('themes/classy/css/components/progress.css');
45 return parent::curlExec($curl_options, $redirect);
49 * Ensures that the exported standard configuration is up to date.
51 public function testStandardConfig() {
53 // FunctionalTestSetupTrait::installParameters() uses
54 // simpletest@example.com as mail address.
55 $skipped_config['contact.form.feedback'][] = '- simpletest@example.com';
56 // \Drupal\filter\Entity\FilterFormat::toArray() drops the roles of filter
58 $skipped_config['filter.format.basic_html'][] = 'roles:';
59 $skipped_config['filter.format.basic_html'][] = '- authenticated';
60 $skipped_config['filter.format.full_html'][] = 'roles:';
61 $skipped_config['filter.format.full_html'][] = '- administrator';
62 $skipped_config['filter.format.restricted_html'][] = 'roles:';
63 $skipped_config['filter.format.restricted_html'][] = '- anonymous';
65 $this->assertInstalledConfig($skipped_config);