Lines 51-57
my $uuid2 = "WXYZ0987";
Link Here
|
51 |
my $uuid3 = "LMNO4561"; |
51 |
my $uuid3 = "LMNO4561"; |
52 |
|
52 |
|
53 |
my $patron_category = $builder->build({ source => 'Category' }); |
53 |
my $patron_category = $builder->build({ source => 'Category' }); |
54 |
my $branch = $schema->resultset('Branch')->first(); # legit branch from your db |
54 |
my $branch = $builder->build({ source => 'Branch' }); |
55 |
|
55 |
|
56 |
$schema->resultset('BorrowerPasswordRecovery')->delete_all(); |
56 |
$schema->resultset('BorrowerPasswordRecovery')->delete_all(); |
57 |
|
57 |
|
Lines 64-70
$schema->resultset('Borrower')->create(
Link Here
|
64 |
userid => $userid1, |
64 |
userid => $userid1, |
65 |
email => $email1, |
65 |
email => $email1, |
66 |
categorycode => $patron_category->{categorycode}, |
66 |
categorycode => $patron_category->{categorycode}, |
67 |
branchcode => $branch, |
67 |
branchcode => $branch->{branchcode}, |
68 |
} |
68 |
} |
69 |
); |
69 |
); |
70 |
$schema->resultset('Borrower')->create( |
70 |
$schema->resultset('Borrower')->create( |
Lines 76-82
$schema->resultset('Borrower')->create(
Link Here
|
76 |
userid => $userid2, |
76 |
userid => $userid2, |
77 |
email => $email2, |
77 |
email => $email2, |
78 |
categorycode => $patron_category->{categorycode}, |
78 |
categorycode => $patron_category->{categorycode}, |
79 |
branchcode => $branch, |
79 |
branchcode => $branch->{branchcode}, |
80 |
} |
80 |
} |
81 |
); |
81 |
); |
82 |
$schema->resultset('Borrower')->create( |
82 |
$schema->resultset('Borrower')->create( |
Lines 88-94
$schema->resultset('Borrower')->create(
Link Here
|
88 |
userid => $userid3, |
88 |
userid => $userid3, |
89 |
email => $email3, |
89 |
email => $email3, |
90 |
categorycode => $patron_category->{categorycode}, |
90 |
categorycode => $patron_category->{categorycode}, |
91 |
branchcode => $branch, |
91 |
branchcode => $branch->{branchcode}, |
92 |
} |
92 |
} |
93 |
); |
93 |
); |
94 |
|
94 |
|
95 |
- |
|
|