public function testFinishBackupFailure()
 {
     $this->configServiceMock->expects($this->once())->method('getLogfileName')->will($this->returnValue('/dev/null'));
     $this->translationMock->expects($this->once())->method('t')->with($this->stringContains('error'));
     $this->configServiceMock->expects($this->exactly(3))->method('setAppValue');
     $this->configServiceMock->expects($this->at(0))->method('setAppValue')->with($this->equalTo('BACKUP_RUNNING'), $this->equalTo('false'));
     $this->configServiceMock->expects($this->at(1))->method('setAppValue')->with($this->equalTo('LAST_BACKUP_SUCCESSFUL'), $this->equalTo('false'));
     $this->configServiceMock->expects($this->at(2))->method('setAppValue')->with($this->equalTo('LAST_BACKUP_TIME'), $this->anything());
     $this->cut->finishBackup(false);
 }