Bugzilla – Attachment 55047 Details for
Bug 17216
Add a new table to store authorized value categories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17216: Fix other tests
Bug-17216-Fix-other-tests.patch (text/plain), 1.98 KB, created by
Jonathan Druart
on 2016-08-30 16:05:42 UTC
(
hide
)
Description:
Bug 17216: Fix other tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-08-30 16:05:42 UTC
Size:
1.98 KB
patch
obsolete
>From fbbb059e5224ba41dc28896c628a2b179741c67a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 30 Aug 2016 17:03:59 +0100 >Subject: [PATCH] Bug 17216: Fix other tests > >--- > t/db_dependent/Koha.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha.t b/t/db_dependent/Koha.t >index 82fdc5e..b8ea314 100644 >--- a/t/db_dependent/Koha.t >+++ b/t/db_dependent/Koha.t >@@ -7,6 +7,7 @@ use Modern::Perl; > use C4::Context; > use Koha::DateUtils qw(dt_from_string); > use Koha::AuthorisedValue; >+use Koha::AuthorisedValueCategories; > > use Test::More tests => 9; > use DateTime::Format::MySQL; >@@ -31,7 +32,8 @@ subtest 'Authorized Values Tests' => sub { > imageurl => 'IMAGEURL' > }; > >- >+ my $avc = Koha::AuthorisedValueCategories->find($data->{category}); >+ Koha::AuthorisedValueCategory->new({ category_name => $data->{category} })->store unless $avc; > # Insert an entry into authorised_value table > my $insert_success = Koha::AuthorisedValue->new( > { category => $data->{category}, >@@ -70,6 +72,7 @@ subtest 'Authorized Values Tests' => sub { > SKIP: { > eval { require Test::Deep; import Test::Deep; }; > skip "Test::Deep required to run the GetAuthorisedValues() tests.", 2 if $@; >+ Koha::AuthorisedValueCategory->new({ category_name => 'BUG10656' })->store; > Koha::AuthorisedValue->new( > { category => 'BUG10656', > authorised_value => 'ZZZ', >@@ -298,6 +301,8 @@ subtest 'GetFrameworksLoop() tests' => sub { > subtest 'GetItemTypesByCategory GetItemTypesCategorized test' => sub{ > plan tests => 7; > >+ my $avc = Koha::AuthorisedValueCategories->find('ITEMTYPECAT'); >+ Koha::AuthorisedValueCategory->new({ category_name => 'ITEMTYPECAT' })->store unless $avc; > my $insertGroup = Koha::AuthorisedValue->new( > { category => 'ITEMTYPECAT', > authorised_value => 'Quertyware', >-- >2.8.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 17216
:
54979
|
54980
|
54981
|
54982
|
54983
|
54984
|
54985
|
54987
|
54988
|
54989
|
54990
|
54991
|
54992
|
54993
|
55003
|
55004
|
55005
|
55008
|
55009
|
55010
|
55011
|
55021
|
55022
|
55023
|
55024
|
55025
|
55026
|
55027
|
55028
|
55029
|
55030
|
55031
|
55032
|
55047
|
55207
|
55208
|
55209
|
55210
|
55211
|
55212
|
55213
|
55214
|
55215
|
55216
|
55217
|
55218
|
55365
|
55366
|
55367
|
55368
|
55369
|
55370
|
55371
|
55372
|
55373
|
55374
|
55375
|
55376
|
55692
|
55693
|
55835
|
55840
|
56202
|
56203
|
56204
|
56205
|
56206
|
56207
|
56208
|
56209
|
56210
|
56211
|
56212
|
56213
|
56214
|
56215
|
56216
|
56217
|
56619
|
57729