Bugzilla – Attachment 99163 Details for
Bug 7611
Show the NOT_LOAN authorised values for item status in XSLT OPAC search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7611: Adjust tests
Bug-7611-Adjust-tests.patch (text/plain), 1.64 KB, created by
Jonathan Druart
on 2020-02-18 09:38:14 UTC
(
hide
)
Description:
Bug 7611: Adjust tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-02-18 09:38:14 UTC
Size:
1.64 KB
patch
obsolete
>From 43cd5fb7b210e39a78c58e4c9f857921a9079e23 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 18 Feb 2020 10:37:58 +0100 >Subject: [PATCH] Bug 7611: Adjust tests > >--- > t/db_dependent/XSLT.t | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/XSLT.t b/t/db_dependent/XSLT.t >index cfec5e9f55..e8fa2190cb 100644 >--- a/t/db_dependent/XSLT.t >+++ b/t/db_dependent/XSLT.t >@@ -34,7 +34,7 @@ my $builder = t::lib::TestBuilder->new; > $schema->storage->txn_begin; > > subtest 'buildKohaItemsNamespace status tests' => sub { >- plan tests => 12; >+ plan tests => 13; > my $item = $builder->build_sample_item({}); > > my $xml = C4::XSLT::buildKohaItemsNamespace( $item->biblionumber,[]); >@@ -57,9 +57,11 @@ subtest 'buildKohaItemsNamespace status tests' => sub { > like($xml,qr{<status>reference</status>},"reference if positive itemtype notforloan value"); > Koha::ItemTypes->find($item->itype)->notforloan(0)->store; > >+ my $substatus = Koha::AuthorisedValues->search({ category => 'NOT_LOAN', authorised_value => -1 })->next->lib; > $item->notforloan(-1)->store; > $xml = C4::XSLT::buildKohaItemsNamespace( $item->biblionumber,[]); >- like($xml,qr{<status>On order</status>},"On order if negative notforloan value"); >+ like($xml,qr{<status>reallynotforloan</status>},"reallynotforloan if negative notforloan value"); >+ like($xml,qr{<substatus>$substatus</substatus>},"substatus set if negative notforloan value"); > > $item->notforloan(1)->store; > $xml = C4::XSLT::buildKohaItemsNamespace( $item->biblionumber,[]); >-- >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 7611
:
7905
|
7906
|
7907
|
60816
|
62930
|
62931
|
85115
|
92495
|
92496
|
94026
|
94212
|
95060
|
95061
|
95235
|
95236
|
95237
|
95238
|
95239
|
95240
|
97804
|
97805
|
97806
|
97807
|
97808
|
99074
|
99075
|
99076
|
99077
|
99078
| 99163