Bugzilla – Attachment 27973 Details for
Bug 11700
C4::AuthoritiesMarc::merge enhancements/fixes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11700: Fix unit tests when index mode is 'dom'
Bug-11700-Fix-unit-tests-when-index-mode-is-dom.patch (text/plain), 1.45 KB, created by
Julian Maurice
on 2014-05-06 14:01:47 UTC
(
hide
)
Description:
Bug 11700: Fix unit tests when index mode is 'dom'
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2014-05-06 14:01:47 UTC
Size:
1.45 KB
patch
obsolete
>From 01b5985406ed4d6da94046df7cc9e5f2026e15c0 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Tue, 6 May 2014 15:59:12 +0200 >Subject: [PATCH] Bug 11700: Fix unit tests when index mode is 'dom' > >--- > t/db_dependent/AuthoritiesMarc.t | 12 ++++-------- > 1 file changed, 4 insertions(+), 8 deletions(-) > >diff --git a/t/db_dependent/AuthoritiesMarc.t b/t/db_dependent/AuthoritiesMarc.t >index ec242c7..5073589 100755 >--- a/t/db_dependent/AuthoritiesMarc.t >+++ b/t/db_dependent/AuthoritiesMarc.t >@@ -6,6 +6,8 @@ > use strict; > use warnings; > >+use C4::Context; >+use C4::Biblio; > use Test::More tests => 15; > use Test::MockModule; > use Test::Warn; >@@ -192,13 +194,6 @@ is_deeply( > > $module->unmock_all(); > >-use C4::Context; >-use C4::Biblio; >- >-my $dbh = C4::Context->dbh; >-$dbh->{AutoCommit} = 0; >-$dbh->{RaiseError} = 1; >- > # Start testing C4::AuthoritiesMarc::merge > > # Create authority type TEST_PERSO >@@ -246,8 +241,9 @@ $zoom_resultset->mock('destroy', undef); > my $zoom_record = new Test::MockModule('ZOOM::Record', no_auto => 1); > $zoom_record->mock('raw', sub { > my $this = shift; >+ my $sqlfield = C4::Context->config('zebra_bib_index_mode') eq 'dom' ? 'marcxml' : 'marc'; > my $marcs = $dbh->selectcol_arrayref( >- 'SELECT marc FROM biblioitems WHERE biblionumber = ?', {}, >+ "SELECT $sqlfield FROM biblioitems WHERE biblionumber = ?", {}, > $this->{_rec}->{biblionumber}); > return $marcs->[0]; > }); >-- >1.7.10.4
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 11700
:
25086
|
25413
|
25414
|
25426
|
27970
|
27971
|
27972
|
27973
|
28176
|
28177
|
35107
|
39264
|
39265
|
39266
|
39267
|
39268
|
39269
|
40968
|
40969
|
40970
|
40971
|
40972
|
45048
|
45049
|
45050
|
45051
|
45052
|
45053
|
46397
|
46398
|
46399
|
46400
|
46401
|
46402
|
56469
|
56470
|
56471
|
56472
|
56473
|
56474