Lines 40-46
subtest 'list_patron_attributes() tests' => sub {
Link Here
|
40 |
|
40 |
|
41 |
my $patron = $builder->build_object({ |
41 |
my $patron = $builder->build_object({ |
42 |
class => 'Koha::Patrons', |
42 |
class => 'Koha::Patrons', |
43 |
value => { flags => 2 ** 2 } # 'catalogue' flag == 2 |
43 |
value => { flags => 2 ** 4 } # 'borrowers' flag == 4 |
44 |
}); |
44 |
}); |
45 |
my $password = 'thePassword123'; |
45 |
my $password = 'thePassword123'; |
46 |
$patron->set_password({ password => $password, skip_validation => 1 }); |
46 |
$patron->set_password({ password => $password, skip_validation => 1 }); |
Lines 208-215
subtest 'overwrite() tests' => sub {
Link Here
|
208 |
|
208 |
|
209 |
my $patron = $builder->build_object({ |
209 |
my $patron = $builder->build_object({ |
210 |
class => 'Koha::Patrons', |
210 |
class => 'Koha::Patrons', |
211 |
value => { flags => 2 ** 4 + 2 ** 2 } # 'borrowers' flag == 4 |
211 |
value => { flags => 2 ** 4 } # 'borrowers' flag == 4 |
212 |
}); # 'catalogue' flag == 2 |
212 |
}); |
213 |
my $password = 'thePassword123'; |
213 |
my $password = 'thePassword123'; |
214 |
$patron->set_password({ password => $password, skip_validation => 1 }); |
214 |
$patron->set_password({ password => $password, skip_validation => 1 }); |
215 |
my $userid = $patron->userid; |
215 |
my $userid = $patron->userid; |
216 |
- |
|
|