Example #1
0
 /**
  * Test retrieve exception handling.
  *
  * @return void
  *
  * @expectedException VuFindSearch\Backend\Exception\BackendException
  */
 public function testRetrieveWrapsPrimoException()
 {
     $conn = $this->getConnectorMock(['getRecord']);
     $conn->expects($this->once())->method('getRecord')->will($this->throwException(new \Exception()));
     $back = new Backend($conn);
     $back->retrieve('1234');
 }