Bugzilla – Attachment 138804 Details for
Bug 29697
Replace GetMarcBiblio occurrences with $biblio->metadata->record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29697: WIP - fix t/db_dependent/Search.t
Bug-29697-WIP---fix-tdbdependentSearcht.patch (text/plain), 1.58 KB, created by
Jonathan Druart
on 2022-08-08 13:33:23 UTC
(
hide
)
Description:
Bug 29697: WIP - fix t/db_dependent/Search.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-08-08 13:33:23 UTC
Size:
1.58 KB
patch
obsolete
>From ac0a6c294d0bf1463554f4f19762fe8641c80dd3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 8 Aug 2022 15:32:22 +0200 >Subject: [PATCH] Bug 29697: WIP - fix t/db_dependent/Search.t > >--- > t/db_dependent/Search.t | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > >diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t >index 9f14d3e26b2..4fc50a8c3f0 100755 >--- a/t/db_dependent/Search.t >+++ b/t/db_dependent/Search.t >@@ -29,6 +29,7 @@ use open ':std', ':encoding(utf8)'; > use Test::More tests => 3; > use Test::MockModule; > use Test::Warn; >+use Test::DBIx::Class; > use t::lib::Mocks; > use t::lib::Mocks::Zebra; > >@@ -466,6 +467,17 @@ ok(MARC::Record::new_from_xml($results_hashref->{biblioserver}->{RECORDS}->[0],' > ($error, $results_hashref, $facets_loop) = getRecords($query,$simple_query,[ ], [ 'biblioserver' ],20,0,\%branches,\%itemtypes,$query_type,0); > is($results_hashref->{biblioserver}->{hits}, 2, "getRecords generated availability-limited search matched right number of records"); > >+ my $db = Test::MockModule->new('Koha::Database'); >+ $db->mock( _new_schema => sub { return Schema(); } ); >+ Koha::Database::flush_schema_cache(); >+ fixtures_ok [ >+ Item => [ >+ [qw( itemnumber )], >+ [ 1 ], >+ [ 2 ], >+ ], >+ ], >+ 'Add items with itemnumber 1 and 2'; > @newresults = searchResults({'interface'=>'opac'}, $query_desc, $results_hashref->{'biblioserver'}->{'hits'}, 17, 0, 0, > $results_hashref->{'biblioserver'}->{"RECORDS"}); > my $allavailable = 'true'; >-- >2.25.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 29697
:
129757
|
129758
|
129759
|
129760
|
129761
|
131868
|
131869
|
131870
|
131871
|
131872
|
131873
|
134066
|
134067
|
134068
|
134069
|
134070
|
134071
|
135574
|
135575
|
135576
|
135577
|
135578
|
135579
|
135580
|
135662
|
135663
|
135664
|
135665
|
135666
|
135667
|
135668
|
135669
|
135670
|
135671
|
135672
|
135673
|
135797
|
135798
|
135799
|
135800
|
135801
|
135802
|
135978
|
135979
|
135980
|
135981
|
135982
|
137835
|
137836
|
137837
|
137838
|
137839
|
137840
|
137894
|
137918
|
137919
|
137920
|
137921
|
137922
|
137923
|
137924
|
137948
|
138057
|
138076
|
138077
|
138078
|
138079
|
138080
|
138081
|
138089
|
138090
|
138804
|
139127
|
140007
|
140008