@@ -, +, @@ --- t/db_dependent/Koha/Item/Transfer.t | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) --- a/t/db_dependent/Koha/Item/Transfer.t +++ a/t/db_dependent/Koha/Item/Transfer.t @@ -24,7 +24,7 @@ use Koha::DateUtils; use t::lib::TestBuilder; -use Test::More tests => 7; +use Test::More tests => 6; use Test::Exception; my $schema = Koha::Database->new->schema; @@ -52,28 +52,6 @@ subtest 'item relation tests' => sub { $schema->storage->txn_rollback; }; -subtest 'from_library relation tests' => sub { - plan tests => 2; - - $schema->storage->txn_begin; - - my $library = $builder->build_object( { class => 'Koha::Libraries' } ); - my $transfer = $builder->build_object( - { - class => 'Koha::Item::Transfers', - value => { - frombranch => $library->branchcode, - } - } - ); - - my $from_library = $transfer->from_library; - is( ref( $from_library ), 'Koha::Library', 'Koha::Item::Transfer->from_library should return a Koha::Library' ); - is( $from_library->branchcode, $library->branchcode, 'Koha::Item::Transfer->from_library should return the correct library' ); - - $schema->storage->txn_rollback; -}; - subtest 'to_library relation tests' => sub { plan tests => 2; --