Exemple #1
0
 public function testRunWithStatusCommand()
 {
     $this->expectOutputRegex('/status command message/');
     $this->_model->setRawArgs(['status']);
     $commandMock = $this->getMock('Magento\\Log\\Model\\Shell\\CommandInterface');
     $this->_factoryMock->expects($this->once())->method('createStatusCommand')->will($this->returnValue($commandMock));
     $commandMock->expects($this->once())->method('execute')->will($this->returnValue('status command message'));
     $this->_factoryMock->expects($this->never())->method('createCleanCommand');
     $this->_model->run();
 }