X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=t%2Fdb_dependent%2FKoha%2FBiblio.t;h=83de0634c6bdcf259db084ec54f6cf2319bb3495;hb=2ab8f50835acb06a115f00119b88e6f5053472c1;hp=c978672aca51bfdccdeeb99bde17633816ecc11a;hpb=33dc5da1559d028a2929c9393306cc188f7db5f6;p=koha-ffzg.git diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t index c978672aca..83de0634c6 100755 --- a/t/db_dependent/Koha/Biblio.t +++ b/t/db_dependent/Koha/Biblio.t @@ -17,7 +17,7 @@ use Modern::Perl; -use Test::More tests => 15; +use Test::More tests => 14; use C4::Biblio qw( AddBiblio ModBiblio ); use Koha::Database; @@ -637,25 +637,3 @@ subtest 'get_marc_notes() UNIMARC tests' => sub { $schema->storage->txn_rollback; }; - -subtest 'adopt_items_from_biblio() tests' => sub { - - plan tests => 2; - - $schema->storage->txn_begin; - - my $biblio1 = $builder->build_sample_biblio; - my $biblio2 = $builder->build_sample_biblio; - my $item1 = $builder->build_sample_item({ biblionumber => $biblio1->biblionumber }); - my $item2 = $builder->build_sample_item({ biblionumber => $biblio1->biblionumber }); - - $biblio2->adopt_items_from_biblio($biblio1); - - $item1->discard_changes; - $item2->discard_changes; - - is($item1->biblionumber, $biblio2->biblionumber, "Item 1 moved"); - is($item2->biblionumber, $biblio2->biblionumber, "Item 2 moved"); - - $schema->storage->txn_rollback; -};