Example #1
0
 public function testProcessRequest()
 {
     $shellMock = $this->getMock('Magento\\Log\\App\\Shell', array('run'), array(), '', false);
     $this->_shellFactoryMock->expects($this->once())->method('create')->with(array('entryPoint' => 'shell.php'))->will($this->returnValue($shellMock));
     $shellMock->expects($this->once())->method('run');
     $this->assertEquals($this->_responseMock, $this->_model->launch());
 }