Bugzilla – Attachment 119382 Details for
Bug 28031
Koha::Patron::Attribute->_check_repeatable doesn't exclude the object's ID
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28031: Add missing txn_begin in Attribute.t
Bug-28031-Add-missing-txnbegin-in-Attributet.patch (text/plain), 1.04 KB, created by
Jonathan Druart
on 2021-04-09 13:37:55 UTC
(
hide
)
Description:
Bug 28031: Add missing txn_begin in Attribute.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-04-09 13:37:55 UTC
Size:
1.04 KB
patch
obsolete
>From 020d93e3e5eb958c5fc1a62cba6dbdee6104ea49 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 9 Apr 2021 15:37:36 +0200 >Subject: [PATCH] Bug 28031: Add missing txn_begin in Attribute.t > >--- > t/db_dependent/Koha/Patron/Attribute.t | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/t/db_dependent/Koha/Patron/Attribute.t b/t/db_dependent/Koha/Patron/Attribute.t >index 670bc87cbfd..17f54f6a8e8 100755 >--- a/t/db_dependent/Koha/Patron/Attribute.t >+++ b/t/db_dependent/Koha/Patron/Attribute.t >@@ -220,6 +220,8 @@ subtest 'store() tests' => sub { > > plan tests => 1; > >+ $schema->storage->txn_begin; >+ > my $patron = $builder->build_object({ class => 'Koha::Patrons' }); > my $non_repeatable_type = $builder->build_object( > { >@@ -246,6 +248,8 @@ subtest 'store() tests' => sub { > ->discard_changes; > > is( $non_repeatable_attr->attribute, 'HEY', 'Value stored correctly' ); >+ >+ $schema->storage->txn_rollback; > }; > }; > >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28031
:
118792
|
118793
|
118794
|
118828
|
118829
|
118830
|
118831
|
118833
|
118859
|
118860
|
118861
|
118862
|
118863
|
119377
|
119378
|
119379
|
119380
| 119382