View | Details | Raw Unified | Return to bug 17212
Collapse All | Expand All

(-)a/t/db_dependent/Koha.t (-2 / +13 lines)
Lines 296-306 subtest 'GetFrameworksLoop() tests' => sub { Link Here
296
};
296
};
297
297
298
subtest 'GetItemTypesByCategory GetItemTypesCategorized test' => sub{
298
subtest 'GetItemTypesByCategory GetItemTypesCategorized test' => sub{
299
    plan tests => 7;
299
    plan tests => 8;
300
300
301
    my $insertGroup = Koha::AuthorisedValue->new(
301
    my $insertGroup = Koha::AuthorisedValue->new(
302
        {   category         => 'ITEMTYPECAT',
302
        {   category         => 'ITEMTYPECAT',
303
            authorised_value => 'Quertyware',
303
            authorised_value => 'Quertyware',
304
            lib_opac         => 'lib4itemtypecat',
304
        }
305
        }
305
    )->store;
306
    )->store;
306
307
Lines 345-350 subtest 'GetItemTypesByCategory GetItemTypesCategorized test' => sub{ Link Here
345
    }
346
    }
346
    @expected = ( 'BKghjklo1', 'Qwertyware', 'Veryheavybook' );
347
    @expected = ( 'BKghjklo1', 'Qwertyware', 'Veryheavybook' );
347
    is_deeply(\@results,\@expected, 'GetItemTypesCategorized: grouped and ungrouped items returned as expected.');
348
    is_deeply(\@results,\@expected, 'GetItemTypesCategorized: grouped and ungrouped items returned as expected.');
349
350
    Koha::AuthorisedValue->new(
351
        {   category         => 'CCODE',
352
            authorised_value => 'Qwertyware',
353
            lib_opac         => 'lib4ccode',
354
        }
355
    )->store;
356
357
    $hrCat = GetItemTypesCategorized();
358
    is( $hrCat->{Qwertyware}{description}, 'lib4itemtypecat', 'GetItemTypesCategorized should correctly retrieve the lib_opac if another AV exist with the same code' );
359
348
};
360
};
349
361
350
subtest 'GetItemTypes test' => sub {
362
subtest 'GetItemTypes test' => sub {
351
- 

Return to bug 17212