From d138d4e346eb02855ac04230a7f7c24a872c2fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nazl=C4=B1=20=C3=87etin?= Date: Wed, 20 Feb 2019 07:21:33 +0000 Subject: [PATCH] Bug 19489: (follow-up) Fix typos in the tests --- t/db_dependent/Koha/Account/Lines.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/db_dependent/Koha/Account/Lines.t b/t/db_dependent/Koha/Account/Lines.t index 222807e162..3781fbb6e3 100755 --- a/t/db_dependent/Koha/Account/Lines.t +++ b/t/db_dependent/Koha/Account/Lines.t @@ -414,7 +414,7 @@ subtest 'adjust() tests' => sub { $schema->storage->txn_rollback; }; -subtest 'issue() tests' => sub { +subtest 'checkout() tests' => sub { plan tests => 6; $schema->storage->txn_begin; @@ -440,17 +440,17 @@ subtest 'issue() tests' => sub { my $line_checkout = $line->checkout; is( ref($line_checkout), 'Koha::Checkout', 'Result type is correct' ); - is( $line_checkout->issue_id, $checkout->issue_id, 'Koha::Account::Line->issue should return the correct issue'); + is( $line_checkout->issue_id, $checkout->issue_id, 'Koha::Account::Line->checkout should return the correct checkout'); my ( $returned, undef, $old_checkout) = C4::Circulation::AddReturn( $item->{barcode} ,$library->{branchcode} ); is( $returned, 1, 'The item should have been returned' ); my $old_line_checkout = $line->checkout; is( ref($old_line_checkout), 'Koha::Old::Checkout', 'Result type is correct' ); - is( $old_line_checkout->issue_id, $old_checkout->issue_id, 'Koha::Account::Line->issue should return the correct old_issue' ); + is( $old_line_checkout->issue_id, $old_checkout->issue_id, 'Koha::Account::Line->checkout should return the correct old_checkout' ); $line->issue_id(undef)->store; - is( $line->checkout, undef, 'Koha::Account::Line->issue should return undef if no issue linked' ); + is( $line->checkout, undef, 'Koha::Account::Line->checkout should return undef if no checkout linked' ); $schema->storage->txn_rollback; }; -- 2.11.0