Beispiel #1
0
 public function testExecuteReportsErrors()
 {
     $model = $this->_createModel(array('uninstall' => true));
     $this->_installerMock->expects($this->once())->method('hasErrors')->will($this->returnValue(true));
     $this->_installerMock->expects($this->once())->method('getErrors')->will($this->returnValue(array('error1')));
     $this->_outputMock->expects($this->once())->method('error')->with($this->stringContains('error1'));
     $this->assertEquals($this->_responseMock, $model->launch());
 }