X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=inline;f=vendor%2Fconsolidation%2Fannotated-command%2Ftests%2FtestCommandInfo.php;fp=vendor%2Fconsolidation%2Fannotated-command%2Ftests%2FtestCommandInfo.php;h=68547414363a255a9d89083144dc901c0d12830f;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=722126756f220ba35ee8ed951614a5478d9c2e1d;hpb=aea91e65e895364e460983b890e295aa5d5540a5;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());