Bugzilla – Attachment 62161 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.38 KB, created by
Marcel de Rooy
on 2017-04-14 08:49:37 UTC
(
hide
)
Description:
Bug 17835: Mock language pref value
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-04-14 08:49:37 UTC
Size:
1.38 KB
patch
obsolete
>From b15fb826c1318f318a6fe7adf170587a96f08202 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 >Content-Type: text/plain; charset=utf-8 > >That way if prefs contain other languages, the test will still pass. > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> > >Signed-off-by: Lari Taskula <lari.taskula@jns.fi> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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.1.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 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