Пример #1
0
 function testGetCopyId()
 {
     $due_date = "2015-09-10";
     $copy_id = 1;
     $patron_id = 1;
     $checkin_status = 1;
     $test_checkout = new Checkout($due_date, $copy_id, $patron_id, $checkin_status);
     $result = $test_checkout->getCopyId();
     $this->assertEquals($copy_id, $result);
 }
Пример #2
0
 function testGetCopyId()
 {
     $id = 1;
     $copy_id = 1;
     $patron_id = 1;
     $checkout_status = false;
     $due_date = "2015-01-01";
     $test_checkout = new Checkout($patron_id, $copy_id, $due_date, $checkout_status);
     $result = $test_checkout->getCopyId();
     $this->assertEquals(1, $result);
 }