Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / system / src / Tests / Installer / SingleVisibleProfileTest.php
index 91af34a2d16ee6891e861e31bb945d66486ce7c8..3e93a0b4fc0db7a0345ecfeec9325613cc6846fb 100644 (file)
@@ -21,25 +21,20 @@ class SingleVisibleProfileTest extends InstallerTestBase {
    */
   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();
   }