Lines 96-102
subtest 'authorised values' => sub {
Link Here
|
96 |
subtest 'branches' => sub { |
96 |
subtest 'branches' => sub { |
97 |
plan tests => 2; |
97 |
plan tests => 2; |
98 |
my ( $subfield ) = grep { $_->{kohafield} eq 'items.homebranch' } @$subfields; |
98 |
my ( $subfield ) = grep { $_->{kohafield} eq 'items.homebranch' } @$subfields; |
99 |
my $libraries = Koha::Libraries->search; |
99 |
my $libraries = Koha::Libraries->search({}, { order_by => 'branchname' }); |
100 |
is_deeply( |
100 |
is_deeply( |
101 |
$subfield->{marc_value}->{values}, |
101 |
$subfield->{marc_value}->{values}, |
102 |
[ $libraries->get_column('branchcode') ] |
102 |
[ $libraries->get_column('branchcode') ] |
103 |
- |
|
|