Beispiel #1
0
 /**
  * Get Patron Fines
  *
  * This is responsible for retrieving all fines by a specific patron.
  *
  * @param array $patron The patron array from patronLogin
  *
  * @return mixed        Array of the patron's fines on success.
  *
  * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  */
 public function getMyFines($patron)
 {
     $fines = parent::getMyFines($patron);
     if (!empty($fines)) {
         $fines[0]['fine'] = 'Accrued Fine';
     }
     $fines = $this->markOnlinePayableFines($fines);
     $this->session->fines = $fines;
     return $fines;
 }
Beispiel #2
0
 /**
  * Test that patron login method always returns a fake user.
  *
  * @return void
  */
 public function testPatronLogin()
 {
     $patron = $this->driver->patronLogin('foo', 'bar');
     $this->assertTrue(isset($patron['id']));
 }