Lines 17-23
Link Here
|
17 |
|
17 |
|
18 |
use Modern::Perl; |
18 |
use Modern::Perl; |
19 |
|
19 |
|
20 |
use Test::More tests => 5; |
20 |
use Test::More tests => 6; |
21 |
use Test::Warn; |
21 |
use Test::Warn; |
22 |
|
22 |
|
23 |
use C4::Context; |
23 |
use C4::Context; |
Lines 84-87
subtest 'id' => sub {
Link Here
|
84 |
is( $patron->id, $patron->borrowernumber ); |
84 |
is( $patron->id, $patron->borrowernumber ); |
85 |
}; |
85 |
}; |
86 |
|
86 |
|
|
|
87 |
subtest 'get_column' => sub { |
88 |
plan tests => 1; |
89 |
my $patron = Koha::Patron->new({categorycode => $categorycode, branchcode => $branchcode })->store; |
90 |
is( $patron->get_column('borrowernumber'), $patron->borrowernumber, 'get_column should retrieve the correct value' ); |
91 |
}; |
87 |
1; |
92 |
1; |
88 |
- |
|
|