Security update for Core, with self-updated composer
[yaffs-website] / vendor / consolidation / annotated-command / tests / testCommandInfo.php
index 722126756f220ba35ee8ed951614a5478d9c2e1d..68547414363a255a9d89083144dc901c0d12830f 100644 (file)
@@ -36,6 +36,17 @@ class CommandInfoTests extends \PHPUnit_Framework_TestCase
         $this->assertCommandInfoIsAsExpected($deserializedCommandInfo);
     }
 
+    function testWithConfigImport()
+    {
+        $commandInfo = CommandInfo::create('\Consolidation\TestUtils\ExampleCommandFile', 'import');
+        $this->assertEquals('config:import', $commandInfo->getName());
+
+        $this->assertEquals(
+            'A config directory label (i.e. a key in \$config_directories array in settings.php).',
+            $commandInfo->arguments()->getDescription('label')
+        );
+    }
+
     function assertCommandInfoIsAsExpected($commandInfo)
     {
         $this->assertEquals('test:arithmatic', $commandInfo->getName());