Пример #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());
 }
Пример #2
0
 public function testCatchException()
 {
     $bootstrap = $this->getMock('Magento\\Framework\\App\\Bootstrap', array(), array(), '', false);
     $this->assertFalse($this->_model->catchException($bootstrap, new \Exception()));
 }