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 1615927d02fc32a897c1bf425d1d5b9a53fbcc9d..68999b1372b6320cc4cd3931080235d562ddfc20 100644 --- a/app/code/Magento/Log/Test/Unit/Console/Command/LogStatusCommandTest.php +++ b/app/code/Magento/Log/Test/Unit/Console/Command/LogStatusCommandTest.php @@ -19,7 +19,7 @@ class LogStatusCommandTest extends \PHPUnit_Framework_TestCase $resource = $this->getMock('Magento\Log\Model\Resource\Shell', [], [], '', false); $resourceFactory->expects($this->once())->method('create')->willReturn($resource); $resource->expects($this->once())->method('getTablesInfo')->willReturn( - [['name' => 'log_customer', 'rows' => '0', 'data_length' => '16.00Kb', 'index_length' => '16.00Kb']] + [['name' => 'log_customer', 'rows' => '1', 'data_length' => '10', 'index_length' => '10']] ); $objectManagerFactory->expects($this->once())->method('create')->willReturn($objectManager); $commandTester = new CommandTester(new LogStatusCommand($objectManagerFactory)); @@ -27,9 +27,9 @@ class LogStatusCommandTest extends \PHPUnit_Framework_TestCase $expectedMsg = '-----------------------------------+------------+------------+------------+' . PHP_EOL . 'Table Name | Rows | Data Size | Index Size |' . PHP_EOL . '-----------------------------------+------------+------------+------------+' . PHP_EOL - . 'log_customer | 0 | 16 b | 16 b |' . PHP_EOL + . 'log_customer | %s | %s | %s |' . PHP_EOL . '-----------------------------------+------------+------------+------------+' . PHP_EOL - . 'Total | 0 | 16 b | 16 b |' . PHP_EOL + . 'Total | %s | %s | %s |' . PHP_EOL . '-----------------------------------+------------+------------+------------+%w'; $this->assertStringMatchesFormat($expectedMsg, $commandTester->getDisplay()); }