Bug 40401: (follow-up) Fix grammar and rollback in tests

- Fixed grammar: "Returns true if the patron is the anonymous patron"
- Fixed test cleanup: use txn_rollback instead of txn_begin
- Fixed test subroutine closure syntax

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2025-07-18 13:00:13 +01:00 committed by Lucas Gass
parent e49602a87e
commit 097ffd0af9
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 3 additions and 3 deletions

View File

@ -3405,7 +3405,7 @@ sub is_patron_inside_charge_limits {
my $is_anonymous_patron= $patron->is_anonymous();
Returns true if the patron the anonymous patron (AnonymousPatron)
Returns true if the patron is the anonymous patron (AnonymousPatron)
=cut

View File

@ -3115,6 +3115,6 @@ subtest 'is_anonymous' => sub {
is( $patron->is_anonymous, 0, q{is_anonymous returns 0 if pref is not equal to patron's id} );
$schema->storage->txn_begin;
$schema->storage->txn_rollback;
}
};