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:
parent
e49602a87e
commit
097ffd0af9
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue