Lines 17-23
Link Here
|
17 |
|
17 |
|
18 |
use Modern::Perl; |
18 |
use Modern::Perl; |
19 |
|
19 |
|
20 |
use Test::More tests => 53; |
20 |
use Test::More tests => 54; |
21 |
use Test::MockModule; |
21 |
use Test::MockModule; |
22 |
use Test::Exception; |
22 |
use Test::Exception; |
23 |
|
23 |
|
Lines 303-308
$patstodel = GetBorrowersToExpunge( {branchcode => $library3->{branchcode},patro
Link Here
|
303 |
is( scalar(@$patstodel),1,'Borrower with issue not deleted by branchcode and list'); |
303 |
is( scalar(@$patstodel),1,'Borrower with issue not deleted by branchcode and list'); |
304 |
$patstodel = GetBorrowersToExpunge( {category_code => 'CIVILIAN',patron_list_id => $list1->patron_list_id() } ); |
304 |
$patstodel = GetBorrowersToExpunge( {category_code => 'CIVILIAN',patron_list_id => $list1->patron_list_id() } ); |
305 |
is( scalar(@$patstodel),1,'Borrower with issue not deleted by category_code and list'); |
305 |
is( scalar(@$patstodel),1,'Borrower with issue not deleted by category_code and list'); |
|
|
306 |
$patstodel = GetBorrowersToExpunge( {category_code => [], patron_list_id => $list1->patron_list_id() } ); |
307 |
is( scalar(@$patstodel),1,'category_code can contain an empty arrayref'); |
306 |
$patstodel = GetBorrowersToExpunge( {category_code => ['CIVILIAN','STAFFER'],patron_list_id => $list1->patron_list_id() } ); |
308 |
$patstodel = GetBorrowersToExpunge( {category_code => ['CIVILIAN','STAFFER'],patron_list_id => $list1->patron_list_id() } ); |
307 |
is( scalar(@$patstodel),1,'Borrower with issue not deleted by multiple category_code and list'); |
309 |
is( scalar(@$patstodel),1,'Borrower with issue not deleted by multiple category_code and list'); |
308 |
$patstodel = GetBorrowersToExpunge( {expired_before => '2015-01-02',patron_list_id => $list1->patron_list_id() } ); |
310 |
$patstodel = GetBorrowersToExpunge( {expired_before => '2015-01-02',patron_list_id => $list1->patron_list_id() } ); |
309 |
- |
|
|