minor #21067 [Console] minor addition to #20817 for branch 3.2 (ShinDarth)

This PR was merged into the 3.2 branch.

Discussion
----------

[Console] minor addition to #20817 for branch 3.2

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

this is a minor addition to #20817

Commits
-------

700344a [Console] minor addition to #20817 for branch 3.2
This commit is contained in:
Nicolas Grekas 2016-12-27 18:06:06 +01:00
commit 31e79ef349

View File

@ -92,6 +92,13 @@ class CommandTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($command->getDefinition()->hasOption('foo'), '->addOption() adds an option to the command');
}
public function testSetHidden()
{
$command = new \TestCommand();
$command->setHidden(true);
$this->assertTrue($command->isHidden());
}
public function testGetNamespaceGetNameSetName()
{
$command = new \TestCommand();