|
Lines 443-449
subtest 'Koha::Patrons->delete' => sub {
Link Here
|
| 443 |
$patron1 = $builder->build_object({ class => 'Koha::Patrons' }); |
443 |
$patron1 = $builder->build_object({ class => 'Koha::Patrons' }); |
| 444 |
$id1 = $patron1->borrowernumber; |
444 |
$id1 = $patron1->borrowernumber; |
| 445 |
$set = Koha::Patrons->search({ borrowernumber => { '>=' => $id1 }}); |
445 |
$set = Koha::Patrons->search({ borrowernumber => { '>=' => $id1 }}); |
| 446 |
throws_ok { $set->delete } 'Koha::Exceptions::Patron::Delete', |
446 |
throws_ok { $set->delete } 'Koha::Exceptions::Patron::FailedDelete', |
| 447 |
'Exception raised for deleting patron'; |
447 |
'Exception raised for deleting patron'; |
| 448 |
}; |
448 |
}; |
| 449 |
|
449 |
|
| 450 |
- |
|
|