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

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

- Changes based on CR feedback.
parent d8b4df42
Branches
No related merge requests found
......@@ -61,4 +61,4 @@ class LogCleanCommand extends AbstractLogCommand
$model->clean();
$output->writeln('<info>' . 'Log cleaned.' . '</info>');
}
}
\ No newline at end of file
}
......@@ -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());
}
}
......@@ -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());
}
}
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