StandardInstallerTest.php in Drupal 10
File
core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php
View source
<?php
namespace Drupal\FunctionalTests\Installer;
class StandardInstallerTest extends ConfigAfterInstallerTestBase {
protected $profile = 'standard';
public function testInstaller() {
$this
->assertSession()
->pageTextContains('Congratulations and welcome to the Drupal community.');
$this
->assertSession()
->elementTextContains('css', '#block-olivero-powered', 'Powered by Drupal');
}
protected function setUpSite() {
$this
->assertSession()
->responseNotContains('olivero');
$this
->assertSession()
->responseContains('css/theme/install-page.css');
parent::setUpSite();
}
public function testStandardConfig() {
$skipped_config = [];
$skipped_config['system.site'][] = 'name: Drupal';
$skipped_config['system.site'][] = 'mail: simpletest@example.com';
$skipped_config['contact.form.feedback'][] = '- simpletest@example.com';
$skipped_config['filter.format.basic_html'][] = 'roles:';
$skipped_config['filter.format.basic_html'][] = '- authenticated';
$skipped_config['filter.format.full_html'][] = 'roles:';
$skipped_config['filter.format.full_html'][] = '- administrator';
$skipped_config['filter.format.restricted_html'][] = 'roles:';
$skipped_config['filter.format.restricted_html'][] = '- anonymous';
$skipped_config['system.site'][] = 'uuid: ' . $this
->config('system.site')
->get('uuid');
$this
->assertInstalledConfig($skipped_config);
}
}