Bugzilla – Attachment 61700 Details for
Bug 17835
Move C4::Koha::GetItemTypes to Koha::ItemTypes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17835: Mock language pref value
Bug-17835-Mock-language-pref-value.patch (text/plain), 1.23 KB, created by
Jonathan Druart
on 2017-03-29 18:21:51 UTC
(
hide
)
Description:
Bug 17835: Mock language pref value
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-03-29 18:21:51 UTC
Size:
1.23 KB
patch
obsolete
>From 3d5c1a54b92c9401a6b3bdb3b58ab454d4714556 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 9 Feb 2017 09:15:29 +0100 >Subject: [PATCH] Bug 17835: Mock language pref value > >That way if prefs contain other languages, the test will still pass. > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > t/db_dependent/Koha/ItemTypes.t | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/t/db_dependent/Koha/ItemTypes.t b/t/db_dependent/Koha/ItemTypes.t >index 8f3dad2..e1ae330 100755 >--- a/t/db_dependent/Koha/ItemTypes.t >+++ b/t/db_dependent/Koha/ItemTypes.t >@@ -22,6 +22,7 @@ use Modern::Perl; > use Test::More tests => 20; > use Data::Dumper; > use Koha::Database; >+use t::lib::Mocks; > > BEGIN { > use_ok('Koha::ItemType'); >@@ -114,6 +115,8 @@ is( $type->summary, 'summary', 'summary' ); > is( $type->checkinmsg, 'checkinmsg', 'checkinmsg' ); > is( $type->checkinmsgtype, 'checkinmsgtype', 'checkinmsgtype' ); > >+t::lib::Mocks::mock_preference('language', 'en'); >+t::lib::Mocks::mock_preference('opaclanguages', 'en'); > my $itemtypes = Koha::ItemTypes->search_with_localization; > is( $itemtypes->count, 3, 'There are 3 item types' ); > my $first_itemtype = $itemtypes->next; >-- >2.9.3
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 17835
:
58561
|
58562
|
58563
|
58564
|
58565
|
58600
|
60033
|
60046
|
60048
|
60049
|
60050
|
60051
|
60052
|
60053
|
60914
|
60915
|
60916
|
60917
|
61695
|
61696
|
61697
|
61698
|
61699
|
61700
|
61966
|
61967
|
61968
|
61969
|
61970
|
61971
|
62156
|
62157
|
62158
|
62159
|
62160
|
62161
|
62162
|
62370
|
62470