|
Lines 26-32
use Koha::Library;
Link Here
|
| 26 |
use t::lib::Mocks; |
26 |
use t::lib::Mocks; |
| 27 |
use t::lib::TestBuilder; |
27 |
use t::lib::TestBuilder; |
| 28 |
|
28 |
|
| 29 |
use Test::More tests => 11; |
29 |
use Test::More tests => 12; |
| 30 |
|
30 |
|
| 31 |
use Test::Warn; |
31 |
use Test::Warn; |
| 32 |
|
32 |
|
|
Lines 782-787
subtest '_mod_item_dates' => sub {
Link Here
|
| 782 |
'yetanotherdatetime is ok' ); |
782 |
'yetanotherdatetime is ok' ); |
| 783 |
}; |
783 |
}; |
| 784 |
|
784 |
|
|
|
785 |
subtest 'get_hostitemnumbers_of' => sub { |
| 786 |
plan tests => 1; |
| 787 |
|
| 788 |
my $bib = MARC::Record->new(); |
| 789 |
$bib->append_fields( |
| 790 |
MARC::Field->new('100', ' ', ' ', a => 'Moffat, Steven'), |
| 791 |
MARC::Field->new('245', ' ', ' ', a => 'Silence in the library'), |
| 792 |
MARC::Field->new('773', ' ', ' ', b => 'b without 0 or 9'), |
| 793 |
); |
| 794 |
my ($biblionumber, $bibitemnum) = AddBiblio($bib, ''); |
| 795 |
|
| 796 |
my @itemnumbers = C4::Items::get_hostitemnumbers_of( $biblionumber ); |
| 797 |
is( @itemnumbers, 0, ); |
| 798 |
}; |
| 799 |
|
| 785 |
# Helper method to set up a Biblio. |
800 |
# Helper method to set up a Biblio. |
| 786 |
sub get_biblio { |
801 |
sub get_biblio { |
| 787 |
my ( $frameworkcode ) = @_; |
802 |
my ( $frameworkcode ) = @_; |
| 788 |
- |
|
|