function StandardRecipeInstallTest::setUpSite
Same name in other branches
- 10 core/tests/Drupal/FunctionalTests/Core/Recipe/StandardRecipeInstallTest.php \Drupal\FunctionalTests\Core\Recipe\StandardRecipeInstallTest::setUpSite()
Overrides InstallerTestBase::setUpSite
File
-
core/
tests/ Drupal/ FunctionalTests/ Core/ Recipe/ StandardRecipeInstallTest.php, line 117
Class
- StandardRecipeInstallTest
- Tests installing the Standard recipe via the installer.
Namespace
Drupal\FunctionalTests\Core\RecipeCode
protected function setUpSite() : void {
$services_file = DRUPAL_ROOT . '/' . $this->siteDirectory . '/services.yml';
// $content = file_get_contents($services_file);
// Disable the super user access.
$yaml = new SymfonyYaml();
$services = [];
$services['parameters']['security.enable_super_user'] = FALSE;
file_put_contents($services_file, $yaml->dump($services));
parent::setUpSite();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.