StandardInstallerTest.php in Drupal 8
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
->assertRaw('No front page content has been created yet.');
}
protected function setUpSite() {
$this
->assertNoRaw('bartik');
$this
->assertRaw('themes/seven/css/theme/install-page.css');
parent::setUpSite();
}
protected function curlExec($curl_options, $redirect = FALSE) {
if (strpos($curl_options[CURLOPT_URL], '&id=1&op=do_nojs') !== FALSE) {
$this
->assertRaw('themes/classy/css/components/progress.css');
}
return parent::curlExec($curl_options, $redirect);
}
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);
}
}