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

(-)a/t/db_dependent/Koha/Patrons.t (-2 / +1 lines)
Lines 307-313 subtest 'renew_account' => sub { Link Here
307
        $expiry_date = $retrieved_patron->renew_account;
307
        $expiry_date = $retrieved_patron->renew_account;
308
        is( $expiry_date, $a_year_later, "today + 12 months must be $a_year_later" );
308
        is( $expiry_date, $a_year_later, "today + 12 months must be $a_year_later" );
309
        $retrieved_patron = Koha::Patrons->find( $patron->{borrowernumber} );
309
        $retrieved_patron = Koha::Patrons->find( $patron->{borrowernumber} );
310
        ok( $retrieved_patron->date_renewed, "Date renewed is set when calling renew_account" );
310
        is( $retrieved_patron->date_renewed, output_pref({ dt => $dt, dateformat => 'iso', dateonly => 1 }), "Date renewed is set when calling renew_account" );
311
        $retrieved_expiry_date = $retrieved_patron->dateexpiry;
311
        $retrieved_expiry_date = $retrieved_patron->dateexpiry;
312
        is( dt_from_string($retrieved_expiry_date), $a_year_later, "today + 12 months must be $a_year_later" );
312
        is( dt_from_string($retrieved_expiry_date), $a_year_later, "today + 12 months must be $a_year_later" );
313
        $number_of_logs = $schema->resultset('ActionLog')->search( { module => 'MEMBERS', action => 'RENEW', object => $retrieved_patron->borrowernumber } )->count;
313
        $number_of_logs = $schema->resultset('ActionLog')->search( { module => 'MEMBERS', action => 'RENEW', object => $retrieved_patron->borrowernumber } )->count;
314
- 

Return to bug 6758