StandardInstallerTest.php in Zircon Profile 8.0
File
core/modules/system/src/Tests/Installer/StandardInstallerTest.php
View source
<?php
namespace Drupal\system\Tests\Installer;
class StandardInstallerTest extends ConfigAfterInstallerTestBase {
protected $profile = 'standard';
public function testInstaller() {
require_once \Drupal::root() . '/core/includes/install.inc';
$this
->assertRaw(t('Congratulations, you installed @drupal!', array(
'@drupal' => drupal_install_profile_distribution_name(),
)));
}
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['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';
$this
->assertInstalledConfig($skipped_config);
}
}