Lines 107-114
$type = Koha::ItemTypes->find( $child2->itemtype );
Link Here
|
107 |
ok( defined($type), 'second result' ); |
107 |
ok( defined($type), 'second result' ); |
108 |
is_deeply( $type->unblessed, $child2->unblessed, "We got back the same object" ); |
108 |
is_deeply( $type->unblessed, $child2->unblessed, "We got back the same object" ); |
109 |
|
109 |
|
110 |
t::lib::Mocks::mock_preference( 'language', 'en' ); |
110 |
t::lib::Mocks::mock_preference( 'StaffInterfaceLanguages', 'en' ); |
111 |
t::lib::Mocks::mock_preference( 'OPACLanguages', 'en' ); |
111 |
t::lib::Mocks::mock_preference( 'OPACLanguages', 'en' ); |
112 |
my $itemtypes = Koha::ItemTypes->search_with_localization; |
112 |
my $itemtypes = Koha::ItemTypes->search_with_localization; |
113 |
is( $itemtypes->count, $initial_count + 4, 'We added 4 item types' ); |
113 |
is( $itemtypes->count, $initial_count + 4, 'We added 4 item types' ); |
114 |
my $first_itemtype = $itemtypes->next; |
114 |
my $first_itemtype = $itemtypes->next; |