diff --git a/app/code/Magento/Log/Console/Command/LogCleanCommand.php b/app/code/Magento/Log/Console/Command/LogCleanCommand.php index 4a48f9eb73bd42d9c92e9dcf3fa698a5cdc4ea72..76900912d8dcadb9dacb942fd2d69de5149c445b 100644 --- a/app/code/Magento/Log/Console/Command/LogCleanCommand.php +++ b/app/code/Magento/Log/Console/Command/LogCleanCommand.php @@ -61,4 +61,4 @@ class LogCleanCommand extends AbstractLogCommand $model->clean(); $output->writeln('<info>' . 'Log cleaned.' . '</info>'); } -} \ No newline at end of file +} diff --git a/app/code/Magento/Log/Test/Unit/Console/Command/LogCleanCommandTest.php b/app/code/Magento/Log/Test/Unit/Console/Command/LogCleanCommandTest.php index 4c3bc1f12b9c9369663577ad0c4faa62b4066260..1e5ce8f05e6c314c3b88c816817f951c679cdbec 100644 --- a/app/code/Magento/Log/Test/Unit/Console/Command/LogCleanCommandTest.php +++ b/app/code/Magento/Log/Test/Unit/Console/Command/LogCleanCommandTest.php @@ -36,5 +36,6 @@ class LogCleanCommandTest extends \PHPUnit_Framework_TestCase $objectManagerFactory->expects($this->once())->method('create')->willReturn($objectManager); $commandTester = new CommandTester(new LogCleanCommand($objectManagerFactory)); $commandTester->execute(['--days' => '1']); + $this->assertEquals('Log cleaned.' . PHP_EOL, $commandTester->getDisplay()); } } diff --git a/app/code/Magento/Log/Test/Unit/Console/Command/LogStatusCommandTest.php b/app/code/Magento/Log/Test/Unit/Console/Command/LogStatusCommandTest.php index 3aa5d6c66f7c7aaee5ea6bf5a23466ce0f4fffca..d5f3265f1569b5495aa6500334950471ff44421c 100644 --- a/app/code/Magento/Log/Test/Unit/Console/Command/LogStatusCommandTest.php +++ b/app/code/Magento/Log/Test/Unit/Console/Command/LogStatusCommandTest.php @@ -22,5 +22,7 @@ class LogStatusCommandTest extends \PHPUnit_Framework_TestCase $objectManagerFactory->expects($this->once())->method('create')->willReturn($objectManager); $commandTester = new CommandTester(new LogStatusCommand($objectManagerFactory)); $commandTester->execute([]); + $this->assertStringStartsWith('-----------------------------------+------------+------------+------------+' + . PHP_EOL, $commandTester->getDisplay()); } }