Mercurial > hg > isophonics-drupal-site
diff core/modules/system/src/Tests/Installer/SingleVisibleProfileTest.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/system/src/Tests/Installer/SingleVisibleProfileTest.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/modules/system/src/Tests/Installer/SingleVisibleProfileTest.php Mon Apr 23 09:46:53 2018 +0100 @@ -21,25 +21,20 @@ */ protected $profile = NULL; - /** - * The install profile info. - * - * @var array - */ - protected $info; - protected function setUp() { - $this->info = [ - 'type' => 'profile', - 'core' => \Drupal::CORE_COMPATIBILITY, - 'name' => 'Override standard', - 'hidden' => TRUE, - ]; - // File API functions are not available yet. - $path = $this->siteDirectory . '/profiles/standard'; - mkdir($path, 0777, TRUE); - file_put_contents("$path/standard.info.yml", Yaml::encode($this->info)); - + $profiles = ['standard', 'demo_umami']; + foreach ($profiles as $profile) { + $info = [ + 'type' => 'profile', + 'core' => \Drupal::CORE_COMPATIBILITY, + 'name' => 'Override ' . $profile, + 'hidden' => TRUE, + ]; + // File API functions are not available yet. + $path = $this->siteDirectory . '/profiles/' . $profile; + mkdir($path, 0777, TRUE); + file_put_contents("$path/$profile.info.yml", Yaml::encode($info)); + } parent::setUp(); }