Skip to content
Snippets Groups Projects
Commit a9118fd9 authored by Safwan Khan's avatar Safwan Khan
Browse files

MAGETWO-36068: Move dev/shell/log.php

- Changes based on CR feedback.
parent 2a50123a
No related merge requests found
......@@ -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());
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment