|
Lines 22-27
use Data::Dumper;
Link Here
|
| 22 |
use MARC::Record; |
22 |
use MARC::Record; |
| 23 |
use C4::Biblio; |
23 |
use C4::Biblio; |
| 24 |
use Koha::Database; |
24 |
use Koha::Database; |
|
|
25 |
use Koha::DateUtils qw( dt_from_string ); |
| 25 |
use Koha::Library; |
26 |
use Koha::Library; |
| 26 |
|
27 |
|
| 27 |
use t::lib::Mocks; |
28 |
use t::lib::Mocks; |
|
Lines 259-264
subtest q{Test Koha::Database->schema()->resultset('Item')->itemtype()} => sub {
Link Here
|
| 259 |
|
260 |
|
| 260 |
my $biblio = $schema->resultset('Biblio')->create({ |
261 |
my $biblio = $schema->resultset('Biblio')->create({ |
| 261 |
title => "Test title", |
262 |
title => "Test title", |
|
|
263 |
datecreated => dt_from_string, |
| 262 |
biblioitems => [ { itemtype => 'BIB_LEVEL' } ], |
264 |
biblioitems => [ { itemtype => 'BIB_LEVEL' } ], |
| 263 |
}); |
265 |
}); |
| 264 |
my $biblioitem = $biblio->biblioitems->first; |
266 |
my $biblioitem = $biblio->biblioitems->first; |
| 265 |
- |
|
|