Lines 142-151
subtest 'EmbedItemsAvailability tests' => sub {
Link Here
|
142 |
is( ref($processor), 'Koha::RecordProcessor', 'Created record processor' ); |
142 |
is( ref($processor), 'Koha::RecordProcessor', 'Created record processor' ); |
143 |
|
143 |
|
144 |
$record = GetMarcBiblio($biblionumber); |
144 |
$record = GetMarcBiblio($biblionumber); |
145 |
ok( !defined $record->field('999')->subfield('x'), q{The record doesn't originally contain 999$x} ); |
145 |
ok( !defined $record->subfield('999', 'x'), q{The record doesn't originally contain 999$x} ); |
146 |
# Apply filter |
146 |
# Apply filter |
147 |
$processor->process($record); |
147 |
$processor->process($record); |
148 |
is($record->field('999')->subfield('x'), 1, 'There is only one item with undef onloan'); |
148 |
is($record->subfield('999', 'x'), 1, 'There is only one item with undef onloan'); |
149 |
|
149 |
|
150 |
$schema->storage->txn_rollback(); |
150 |
$schema->storage->txn_rollback(); |
151 |
}; |
151 |
}; |
152 |
- |
|
|