Bug 19489: (follow-up) Fix typos in the tests
authorNazlı Çetin <nazli@devinim.com.tr>
Wed, 20 Feb 2019 07:21:33 +0000 (07:21 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 11 Mar 2019 12:45:58 +0000 (12:45 +0000)
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

t/db_dependent/Koha/Account/Lines.t

index 71c951c..b25d20a 100755 (executable)
@@ -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;
 };