Bugzilla – Attachment 67488 Details for
Bug 19392
auth_values_input_www.t does not clean up
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19392: Clean-up behind auth_values_input_www.t
Bug-19392-Clean-up-behind-authvaluesinputwwwt.patch (text/plain), 1.54 KB, created by
Jonathan Druart
on 2017-09-29 19:30:10 UTC
(
hide
)
Description:
Bug 19392: Clean-up behind auth_values_input_www.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-09-29 19:30:10 UTC
Size:
1.54 KB
patch
obsolete
>From eac82841a147fabb2a0e1b8e8cd72baa8c3eeb15 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 29 Sep 2017 16:28:13 -0300 >Subject: [PATCH] Bug 19392: Clean-up behind auth_values_input_www.t >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >The two categories created by this test script are not removed > >Test plan: >without this patch, the two authorised value categories å¦åä¼Î¼Î¼ and >tòmas are not removed when the script finishes. >Now it does! >--- > t/db_dependent/www/auth_values_input_www.t | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/t/db_dependent/www/auth_values_input_www.t b/t/db_dependent/www/auth_values_input_www.t >index e40d7e45d3..0d265293ea 100644 >--- a/t/db_dependent/www/auth_values_input_www.t >+++ b/t/db_dependent/www/auth_values_input_www.t >@@ -28,6 +28,8 @@ use POSIX; > use URI::Escape; > use Encode; > >+use Koha::AuthorisedValueCategories; >+ > my $testdir = File::Spec->rel2abs( dirname(__FILE__) ); > > my $koha_conf = $ENV{KOHA_CONF}; >@@ -135,6 +137,8 @@ if ($id_to_del) { > ok($id_to_del ne undef, "error, link to delete not working"); > } > >+Koha::AuthorisedValueCategories->find($category)->delete; # Clean up >+ > #---------------------------------------- Test with only latin utf-8 (could be taken as Latin-1/ISO 8859-1) > > $category = 'tòmas'; >@@ -194,3 +198,4 @@ if ($id_to_del2) { > ok($id_to_del2 ne undef, "error, link to delete not working"); > } > >+Koha::AuthorisedValueCategories->find($category)->delete; # Clean up >-- >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 19392
: 67488