Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / isolation / tests / SiteSpecParserTest.php
index 417b7f9768cf9d522df2639f17e0b2318e4bb618..794b63e9226a123118b03055a9fab9b78415b400 100644 (file)
@@ -64,8 +64,11 @@ class SiteSpecParserTest extends TestCase
         return [
             [ '/path/to/drupal#uri' ],
             [ 'user@server/path/to/drupal#uri' ],
+            [ 'user.name@example.com/path/to/drupal#uri' ],
             [ 'user@server/path/to/drupal' ],
+            [ 'user@example.com/path/to/drupal' ],
             [ 'user@server#uri' ],
+            [ 'user@example.com#uri' ],
             [ '#uri' ],
         ];
     }
@@ -97,6 +100,16 @@ class SiteSpecParserTest extends TestCase
                 ],
             ],
 
+            [
+                'user.name@example.com/path#somemultisite',
+                [
+                    'user' => 'user.name',
+                    'host' => 'example.com',
+                    'root' => '/path',
+                    'uri' => 'somemultisite',
+                ],
+            ],
+
             [
                 'user@server/path',
                 [
@@ -107,6 +120,16 @@ class SiteSpecParserTest extends TestCase
                 ],
             ],
 
+            [
+                'user.name@example.com/path',
+                [
+                    'user' => 'user.name',
+                    'host' => 'example.com',
+                    'root' => '/path',
+                    'uri' => 'default',
+                ],
+            ],
+
             [
                 '/fixtures#mymultisite',
                 [