Improved and simplified CreateTagCommand thanks to SymfonyStyle

This commit is contained in:
Alejandro Celaya
2017-12-31 19:03:41 +01:00
parent a60c45ca4d
commit 09b161304c
2 changed files with 6 additions and 13 deletions
@@ -14,10 +14,6 @@ use Zend\I18n\Translator\Translator;
class CreateTagCommandTest extends TestCase
{
/**
* @var CreateTagCommand
*/
private $command;
/**
* @var CommandTester
*/
@@ -63,7 +59,7 @@ class CreateTagCommandTest extends TestCase
]);
$output = $this->commandTester->getDisplay();
$this->assertContains(sprintf('Created tags: ["%s"]', implode('", "', $tagNames)), $output);
$this->assertContains('Tags properly created', $output);
$createTags->shouldHaveBeenCalled();
}
}