X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fconsolidation%2Fannotated-command%2Ftests%2FtestCommandInfo.php;h=68547414363a255a9d89083144dc901c0d12830f;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=722126756f220ba35ee8ed951614a5478d9c2e1d;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/consolidation/annotated-command/tests/testCommandInfo.php b/vendor/consolidation/annotated-command/tests/testCommandInfo.php index 722126756..685474143 100644 --- a/vendor/consolidation/annotated-command/tests/testCommandInfo.php +++ b/vendor/consolidation/annotated-command/tests/testCommandInfo.php @@ -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());