Lines 33-39
use Koha::RecordProcessor;
Link Here
|
33 |
my $schema = Koha::Database->schema(); |
33 |
my $schema = Koha::Database->schema(); |
34 |
my $builder = t::lib::TestBuilder->new(); |
34 |
my $builder = t::lib::TestBuilder->new(); |
35 |
|
35 |
|
36 |
subtest 'ExpandAuthorizedValues tests' => sub { |
36 |
subtest 'ExpandCodedFields tests' => sub { |
37 |
|
37 |
|
38 |
plan tests => 10; |
38 |
plan tests => 10; |
39 |
|
39 |
|
Lines 76-85
subtest 'ExpandAuthorizedValues tests' => sub {
Link Here
|
76 |
my $processor = Koha::RecordProcessor->new( |
76 |
my $processor = Koha::RecordProcessor->new( |
77 |
{ |
77 |
{ |
78 |
schema => 'MARC', |
78 |
schema => 'MARC', |
79 |
filters => ['ExpandAuthorizedValues'], |
79 |
filters => ['ExpandCodedFields'], |
80 |
} |
80 |
} |
81 |
); |
81 |
); |
82 |
is( ref($processor), 'Koha::RecordProcessor', 'Created record processor with ExpandAuthorizedValues filter' ); |
82 |
is( ref($processor), 'Koha::RecordProcessor', 'Created record processor with ExpandCodedFields filter' ); |
83 |
|
83 |
|
84 |
my $result = $processor->process( $record ); |
84 |
my $result = $processor->process( $record ); |
85 |
is( ref($result), 'MARC::Record', 'It returns a reference to a MARC::Record object' ); |
85 |
is( ref($result), 'MARC::Record', 'It returns a reference to a MARC::Record object' ); |
86 |
- |
|
|