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

(-)a/t/db_dependent/ImportBatch.t (-3 / +5 lines)
Lines 361-369 subtest "BatchCommitRecords overlay into framework" => sub { Link Here
361
};
361
};
362
362
363
subtest "Do not adjust biblionumber when replacing items during import" => sub {
363
subtest "Do not adjust biblionumber when replacing items during import" => sub {
364
    plan tests => 6;
364
    plan tests => 7;
365
365
366
    my $item1 = $builder->build_sample_item;
366
    my $item1 = $builder->build_sample_item;
367
    my $original_biblionumber = $item1->biblionumber;
368
    my $original_biblioitemnumber = $item1->biblioitemnumber;
367
    my $item2 = $builder->build_sample_item;
369
    my $item2 = $builder->build_sample_item;
368
370
369
    my $library = $builder->build_object({ class => 'Koha::Libraries' });
371
    my $library = $builder->build_object({ class => 'Koha::Libraries' });
Lines 401-407 subtest "Do not adjust biblionumber when replacing items during import" => sub { Link Here
401
    is( $import_item->status, 'imported', 'Import was successful');
403
    is( $import_item->status, 'imported', 'Import was successful');
402
    is( $import_item->import_error, undef, 'No error was reported' );
404
    is( $import_item->import_error, undef, 'No error was reported' );
403
405
404
    is( $item1->biblionumber, $item1->biblioitemnumber, "Item's biblionumber and biblioitemnumber match" );
406
    is( $item1->biblionumber, $original_biblionumber, "Item's biblionumber has not changed" );
407
    is( $item1->biblionumber, $original_biblioitemnumber, "Item's biblioitemnumber has not changed" );
405
    is( $item1->homebranch, $library->branchcode, "Item was overlaid successfully" );
408
    is( $item1->homebranch, $library->branchcode, "Item was overlaid successfully" );
406
};
409
};
407
410
408
- 

Return to bug 32804