Bugzilla – Attachment 59880 Details for
Bug 18014
AddAuthority should respect AUTO_INCREMENT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18014: General update of AuthoritiesMarc.t
Bug-18014-General-update-of-AuthoritiesMarct.patch (text/plain), 1.49 KB, created by
Julian Maurice
on 2017-02-03 12:57:19 UTC
(
hide
)
Description:
Bug 18014: General update of AuthoritiesMarc.t
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2017-02-03 12:57:19 UTC
Size:
1.49 KB
patch
obsolete
>From 5692fe9df13c866d9377f0164ca053b994d68ab8 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 31 Jan 2017 08:59:45 +0100 >Subject: [PATCH] Bug 18014: General update of AuthoritiesMarc.t > >Modern::Perl, Koha::Database, etc. > >Test plan: >Run t/db_dependent/AuthoritiesMarc.t > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> >--- > t/db_dependent/AuthoritiesMarc.t | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > >diff --git a/t/db_dependent/AuthoritiesMarc.t b/t/db_dependent/AuthoritiesMarc.t >index f432a5d3b8..da8241d22e 100755 >--- a/t/db_dependent/AuthoritiesMarc.t >+++ b/t/db_dependent/AuthoritiesMarc.t >@@ -3,14 +3,15 @@ > # This Koha test module is a stub! > # Add more tests here!!! > >-use strict; >-use warnings; >+use Modern::Perl; > > use Test::More tests => 8; > use Test::MockModule; > use Test::Warn; > use MARC::Record; >+ > use t::lib::Mocks; >+use Koha::Database; > > BEGIN { > use_ok('C4::AuthoritiesMarc'); >@@ -57,9 +58,9 @@ $module->mock('GetAuthority', sub { > return $record; > }); > >+my $schema = Koha::Database->new->schema; >+$schema->storage->txn_begin; > my $dbh = C4::Context->dbh; >-$dbh->{AutoCommit} = 0; >-$dbh->{RaiseError} = 1; > > t::lib::Mocks::mock_preference('marcflavour', 'MARC21'); > >@@ -190,4 +191,4 @@ is_deeply( > 'test BuildSummary for UNIMARC' > ); > >-$dbh->rollback; >+$schema->storage->txn_rollback; >-- >2.11.0
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 18014
:
59663
|
59664
|
59665
|
59667
|
59668
|
59669
|
59700
|
59701
|
59702
|
59869
|
59870
|
59871
|
59880
|
59881
|
59882
|
59883